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

Unified Diff: ash/shell.h

Issue 9616045: Aura/Ash split: Move ScreenAura to ash::ScreenAsh. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a separate aura::TestScreen in tests instead, partially reverting to patchset 2 Created 8 years, 9 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 | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
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 dc6415d8cf99ba76418686f81a6087d35bfd61d7..7f1e0a05b2317f9ec1678d4cf649c70bec62f885 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -14,7 +14,9 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/observer_list.h"
#include "ui/gfx/size.h"
+#include "ui/gfx/insets.h"
class CommandLine;
@@ -44,7 +46,9 @@ class Launcher;
class NestedDispatcherController;
class PowerButtonController;
class PowerStatusController;
+class ScreenAsh;
class ShellDelegate;
+class ShellObserver;
class SystemTrayDelegate;
class SystemTray;
class VideoDetector;
@@ -151,6 +155,13 @@ class ASH_EXPORT Shell {
// Rotate focus through containers that can receive focus.
void RotateFocus(Direction direction);
+ // Sets the screen's work area insets, this notifies observers too.
+ void SetScreenWorkAreaInsets(const gfx::Insets& insets);
+
+ // Add/remove observer.
+ void AddShellObserver(ShellObserver* observer);
+ void RemoveShellObserver(ShellObserver* observer);
+
#if !defined(OS_MACOSX)
AcceleratorController* accelerator_controller() {
return accelerator_controller_.get();
@@ -193,6 +204,8 @@ class ASH_EXPORT Shell {
Launcher* launcher() { return launcher_.get(); }
+ const ScreenAsh* screen() { return screen_; }
+
internal::ShelfLayoutManager* shelf() const { return shelf_; }
SystemTray* tray() const { return tray_.get(); }
@@ -230,6 +243,7 @@ class ASH_EXPORT Shell {
static bool initially_hide_cursor_;
scoped_ptr<aura::RootWindow> root_window_;
+ ScreenAsh* screen_;
internal::RootWindowEventFilter* root_filter_; // not owned
@@ -283,6 +297,8 @@ class ASH_EXPORT Shell {
// the status area.
internal::ShelfLayoutManager* shelf_;
+ ObserverList<ShellObserver> observers_;
+
// Can change at runtime.
BackgroundMode desktop_background_mode_;
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698