Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1094)

Unified Diff: chrome/android/java/res/layout/main.xml

Issue 1386403003: Resize only the virtual viewport when the OSK triggers a resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Inset handling logic Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/main.xml
diff --git a/chrome/android/java/res/layout/main.xml b/chrome/android/java/res/layout/main.xml
index 23fd4a4da632b79433e5d61baa6b2d1f72b83072..98e54bc25e744c6889b998c785960a5f7d8c79f2 100644
--- a/chrome/android/java/res/layout/main.xml
+++ b/chrome/android/java/res/layout/main.xml
@@ -4,70 +4,79 @@
found in the LICENSE file. -->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout
+ <org.chromium.chrome.browser.InsetConsumerView
+ android:id="@+id/inset_consumer_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
- <org.chromium.chrome.browser.compositor.CompositorViewHolder
- android:id="@+id/compositor_view_holder"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1" />
+ android:layout_height="match_parent"
+ android:orientation="vertical">
- <HorizontalScrollView
- android:id="@+id/keyboard_accessory"
- android:layout_height="@dimen/keyboard_accessory_height"
+ <org.chromium.chrome.browser.compositor.CompositorViewHolder
+ android:id="@+id/compositor_view_holder"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1" />
+
+ <HorizontalScrollView
+ android:id="@+id/keyboard_accessory"
+ android:layout_height="@dimen/keyboard_accessory_height"
+ android:layout_width="match_parent"
+ android:background="@drawable/keyboard_accessory_background"
+ android:contentDescription="@string/autofill_keyboard_accessory_content_description"
+ android:fillViewport="true"
+ android:scrollbars="none"
+ android:visibility="gone" />
+
+ <org.chromium.chrome.browser.widget.FadingShadowView
+ android:id="@+id/bottombar_shadow"
+ android:layout_width="match_parent"
+ android:layout_height="2dp"
+ android:layout_marginTop="-2dp"
+ android:visibility="gone" />
+
+ <ViewStub
+ android:id="@+id/bottombar_stub"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ </LinearLayout>
+
+ <ViewStub
+ android:id="@+id/omnibox_results_container_stub"
android:layout_width="match_parent"
- android:background="@drawable/keyboard_accessory_background"
- android:contentDescription="@string/autofill_keyboard_accessory_content_description"
- android:fillViewport="true"
- android:scrollbars="none"
- android:visibility="gone" />
+ android:layout_height="match_parent"
+ android:layout_marginTop="@dimen/tab_strip_height"
+ android:inflatedId="@+id/omnibox_results_container"
+ android:layout="@layout/omnibox_results_container" />
- <org.chromium.chrome.browser.widget.FadingShadowView
- android:id="@+id/bottombar_shadow"
+ <!-- Toolbar size area painted black to avoid the action bar showing the window background -->
+ <View
+ android:id="@+id/action_bar_black_background"
android:layout_width="match_parent"
- android:layout_height="2dp"
- android:layout_marginTop="-2dp"
+ android:layout_height="@dimen/toolbar_height_no_shadow"
+ android:background="#000000"
android:visibility="gone" />
-
<ViewStub
- android:id="@+id/bottombar_stub"
+ android:id="@+id/control_container_stub"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
- </LinearLayout>
-
- <ViewStub
- android:id="@+id/omnibox_results_container_stub"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="@dimen/tab_strip_height"
- android:inflatedId="@+id/omnibox_results_container"
- android:layout="@layout/omnibox_results_container" />
+ <ViewStub
+ android:id="@+id/empty_container_stub"
+ android:inflatedId="@+id/empty_container"
+ android:layout="@layout/empty_background_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+ <!-- This empty view is used as the anchor for custom menu -->
+ <View
+ android:id="@+id/menu_anchor_stub"
+ android:layout_width="0px"
+ android:layout_height="0px"
+ android:layout_gravity="bottom|start"
+ />
- <!-- Toolbar size area painted black to avoid the action bar showing the window background -->
- <View
- android:id="@+id/action_bar_black_background"
- android:layout_width="match_parent"
- android:layout_height="@dimen/toolbar_height_no_shadow"
- android:background="#000000"
- android:visibility="gone" />
- <ViewStub
- android:id="@+id/control_container_stub"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- <ViewStub
- android:id="@+id/empty_container_stub"
- android:inflatedId="@+id/empty_container"
- android:layout="@layout/empty_background_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <!-- This empty view is used as the anchor for custom menu -->
- <View
- android:id="@+id/menu_anchor_stub"
- android:layout_width="0px"
- android:layout_height="0px"
- android:layout_gravity="bottom|start"
- />
+ </org.chromium.chrome.browser.InsetConsumerView>
</merge>

Powered by Google App Engine
This is Rietveld 408576698