summaryrefslogtreecommitdiffstats
path: root/ash/shell_observer.h
diff options
context:
space:
mode:
authorphweiss <phweiss@chromium.org>2015-11-17 04:56:18 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-17 12:56:59 +0000
commit0bf64c504eb4e7c22daad3518427c3dfc6cd00d4 (patch)
tree31df3d62b549234ed96c73a65d7a581afa3c0842 /ash/shell_observer.h
parent449769316764e3922e50920bb62b186221301e47 (diff)
downloadchromium_src-0bf64c504eb4e7c22daad3518427c3dfc6cd00d4.zip
chromium_src-0bf64c504eb4e7c22daad3518427c3dfc6cd00d4.tar.gz
chromium_src-0bf64c504eb4e7c22daad3518427c3dfc6cd00d4.tar.bz2
Implement device policy DisplayRotationDefault
The policy affects all displays on every reboot and when it changes its value. The user is able to rotate the display to a different orientation any time, but will have to do so on every reboot while the policy is in effect. It is enforced by the new class DisplayRotationDefaultHandler, which is created in the PreInit()-method of ChromeShellDelegate. It registers itself as observer with the WindowTreeHostManager for display changes, and with CrosSettings for policy changes. It is destroyed via the new OnShutdown()-function of WindowTreeHostManager::Observer. BUG=499842 TEST=browsertest Review URL: https://codereview.chromium.org/1388353002 Cr-Commit-Position: refs/heads/master@{#360069}
Diffstat (limited to 'ash/shell_observer.h')
-rw-r--r--ash/shell_observer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/shell_observer.h b/ash/shell_observer.h
index 3ea105b..da53428 100644
--- a/ash/shell_observer.h
+++ b/ash/shell_observer.h
@@ -63,6 +63,9 @@ class ASH_EXPORT ShellObserver {
// animating but have been restored.
virtual void OnMaximizeModeEnded() {}
+ // Called at the end of Shell::Init.
+ virtual void OnShellInitialized() {}
+
protected:
virtual ~ShellObserver() {}
};