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

Issue 2549503004: Replace SizingFlags in layouts with ViewportMode (Closed)

Created:
4 years ago by mdjones
Modified:
4 years ago
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace SizingFlags in layouts with ViewportMode This change replaces the concept of sizing flags, which control both viewport size and browser controls behavior, with mutually exclusive modes: - ALWAYS_FULLSCREEN - ALWAYS_SHOWING_BROWSER_CONTROLS - DYNAMIC_BROWSER_CONTROLS - USE_PREVIOUS_BROWSER_CONTROLS_STATE Permanent android browser controls state can be changed by overriding two functions in the layout class: - forceShowBrowserControlsAndroidView() - forceHideBrowserControlsAndroidView() These modes and functions reduce the amount of research that needs to be done to understand how a particular layout is going to behave. BUG=670459 Committed: https://crrev.com/1a3dfa323fd2fc5f5afa2fe102556029a26f24bc Cr-Commit-Position: refs/heads/master@{#437419}

Patch Set 1 #

Patch Set 2 : documentation nit #

Total comments: 1

Patch Set 3 : use proper toolbar control #

Messages

Total messages: 10 (4 generated)
mdjones
ptal
4 years ago (2016-12-01 22:05:23 UTC) #2
mdjones
https://codereview.chromium.org/2549503004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/Layout.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/Layout.java (right): https://codereview.chromium.org/2549503004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/Layout.java#newcode57 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/Layout.java:57: public enum ViewportMode { Should these be ints?
4 years ago (2016-12-01 22:06:01 UTC) #3
David Trainor- moved to gerrit
lgtm thanks!
4 years ago (2016-12-08 23:54:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2549503004/40001
4 years ago (2016-12-09 00:17:46 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-09 01:43:10 UTC) #8
commit-bot: I haz the power
4 years ago (2016-12-09 01:45:46 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1a3dfa323fd2fc5f5afa2fe102556029a26f24bc
Cr-Commit-Position: refs/heads/master@{#437419}

Powered by Google App Engine
This is Rietveld 408576698