-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This likely will not be merged, just a reference for build-time JNI replacement.
- Loading branch information
Showing
27 changed files
with
298 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
cobalt/android/apk/app/src/main/res/layout/content_shell_activity.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Copyright 2012 The Chromium Authors | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. | ||
--> | ||
|
||
<merge xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<cobalt.org.chromium.content_shell.ShellManager | ||
android:id="@+id/shell_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Copyright 2012 The Chromium Authors | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. | ||
--> | ||
|
||
<cobalt.org.chromium.content_shell.Shell | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" > | ||
<LinearLayout android:id="@+id/toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:background="@drawable/progress"> | ||
<ImageButton android:id="@+id/stop_reload_button" | ||
android:layout_width="38dp" | ||
android:layout_height="38dp" | ||
android:src="@android:drawable/ic_menu_close_clear_cancel" | ||
android:scaleType="centerCrop" | ||
tools:ignore="ContentDescription" /> | ||
<EditText android:id="@+id/url" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="bottom" | ||
android:textSize="18sp" | ||
android:singleLine="true" | ||
android:selectAllOnFocus="true" | ||
android:hint="@string/url_hint" | ||
android:inputType="textUri" | ||
android:imeOptions="actionGo" /> | ||
<ImageButton android:id="@+id/prev" | ||
android:layout_width="38dp" | ||
android:layout_height="38dp" | ||
android:src="@android:drawable/ic_media_previous" | ||
android:scaleType="center" | ||
tools:ignore="ContentDescription" /> | ||
<ImageButton android:id="@+id/next" | ||
android:layout_width="38dp" | ||
android:layout_height="38dp" | ||
android:src="@android:drawable/ic_media_next" | ||
android:scaleType="center" | ||
tools:ignore="ContentDescription" /> | ||
</LinearLayout> | ||
<FrameLayout android:id="@+id/contentview_holder" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" /> | ||
</cobalt.org.chromium.content_shell.Shell> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2016 The Cobalt Authors. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
<!-- | ||
Copyright 2012 The Chromium Authors | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. | ||
--> | ||
|
||
<resources> | ||
<!-- Error message when there's a problem connecting to the network. --> | ||
<string name="starboard_platform_connection_error">Can\'t connect right now</string> | ||
<!-- Button label on network connection error to retry the request. --> | ||
<string name="starboard_platform_retry">Try again</string> | ||
<!-- Button label on network connection error to open system network settings. --> | ||
<string name="starboard_platform_network_settings">Open network settings</string> | ||
<!-- Toast message when we can't get the device account to sign in. --> | ||
<string name="starboard_account_picker_error">Account not available.</string> | ||
<!-- Toast message when we the account can't be authorized. --> | ||
<string name="starboard_account_auth_error">Account authorization failed.</string> | ||
<!-- Toast message indicating that the selected account is no longer available to sign-in. --> | ||
<string name="starboard_missing_account">Account not available:\n%1$s</string> | ||
<!-- Toast message shown when the user has denied permission to get device accounts. --> | ||
<string name="starboard_accounts_permission">Sign in requires Contacts permission to be granted in system settings.</string> | ||
<string name="url_hint">Type URL Here</string> | ||
<string name="browser_process_initialization_failed">Initialization failed.</string> | ||
<!-- Error message when there's a problem connecting to the network. --> | ||
<string name="starboard_platform_connection_error">Can\'t connect right now</string> | ||
<!-- Button label on network connection error to retry the request. --> | ||
<string name="starboard_platform_retry">Try again</string> | ||
<!-- Button label on network connection error to open system network settings. --> | ||
<string name="starboard_platform_network_settings">Open network settings</string> | ||
<!-- Toast message when we can't get the device account to sign in. --> | ||
<string name="starboard_account_picker_error">Account not available.</string> | ||
<!-- Toast message when we the account can't be authorized. --> | ||
<string name="starboard_account_auth_error">Account authorization failed.</string> | ||
<!-- Toast message indicating that the selected account is no longer available to sign-in. --> | ||
<string name="starboard_missing_account">Account not available:\n%1$s</string> | ||
<!-- Toast message shown when the user has denied permission to get device accounts. --> | ||
<string name="starboard_accounts_permission">Sign in requires Contacts permission to be granted in system settings.</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.