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

Unified Diff: ash/shell.h

Issue 9320076: Aura: Switch window mode when screen resolution changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/shell.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 16add64ab50f47014fc13803f5be4f8f8518fe7a..f1d92bd3dd3fc02f760c0434e337d992c6ca8911 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -15,6 +15,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
+#include "ui/aura/root_window_observer.h"
class CommandLine;
@@ -62,7 +63,7 @@ class WorkspaceController;
//
// Upon creation, the Shell sets itself as the RootWindow's delegate, which
// takes ownership of the Shell.
-class ASH_EXPORT Shell {
+class ASH_EXPORT Shell : public aura::RootWindowObserver {
public:
// In compact window mode we fill the screen with a single maximized window,
// similar to ChromeOS R17 and earlier. In overlapping mode we have draggable
@@ -140,6 +141,9 @@ class ASH_EXPORT Shell {
return shadow_controller_.get();
}
+ // aura::RootWindowObserver overrides:
+ virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE;
+
private:
FRIEND_TEST_ALL_PREFIXES(ShellTest, ComputeWindowMode);
FRIEND_TEST_ALL_PREFIXES(ShellTest, ChangeWindowMode);
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698