summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-27 20:59:27 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-27 20:59:27 +0000
commitbfb411316d5d6f6a29e01a88f7a94b545b827776 (patch)
tree99c45616a22f3cb190dd7f068edfdd8941e6d524 /ash/shell.h
parentbdb730765e736232e1f69a908bbeee3b54393934 (diff)
downloadchromium_src-bfb411316d5d6f6a29e01a88f7a94b545b827776.zip
chromium_src-bfb411316d5d6f6a29e01a88f7a94b545b827776.tar.gz
chromium_src-bfb411316d5d6f6a29e01a88f7a94b545b827776.tar.bz2
ash: A first step for the uber tray.
As a first step, there are items to open settings, help pages, and an item to allow [un]muting volume. The resources have not been uploaded yet. That will be done in a separate CL to allow this one to go through trybots etc. This new uber-tray can be turned on at runtime using --ash-uber-tray flag. BUG=110130 TEST=none yet. will be added when a little more fleshed out. Review URL: https://chromiumcodereview.appspot.com/9463039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/shell.h b/ash/shell.h
index db60bae..5a57c24 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -42,6 +42,8 @@ class Launcher;
class NestedDispatcherController;
class PowerButtonController;
class ShellDelegate;
+class SystemTrayDelegate;
+class SystemTray;
class VideoDetector;
class WindowCycleController;
@@ -188,11 +190,14 @@ class ASH_EXPORT Shell {
}
ShellDelegate* delegate() { return delegate_.get(); }
+ SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); }
Launcher* launcher() { return launcher_.get(); }
internal::ShelfLayoutManager* shelf() const { return shelf_; }
+ SystemTray* tray() const { return tray_.get(); }
+
// Made available for tests.
internal::ShadowController* shadow_controller() {
return shadow_controller_.get();
@@ -240,6 +245,7 @@ class ASH_EXPORT Shell {
#endif // !defined(OS_MACOSX)
scoped_ptr<ShellDelegate> delegate_;
+ scoped_ptr<SystemTrayDelegate> tray_delegate_;
scoped_ptr<Launcher> launcher_;
@@ -287,6 +293,10 @@ class ASH_EXPORT Shell {
// Status area with clock, Wi-Fi signal, etc.
views::Widget* status_widget_;
+ // System tray with clock, Wi-Fi signal, etc. (a replacement in progress for
+ // |status_widget_|).
+ scoped_ptr<SystemTray> tray_;
+
// Offset between the corner of the status area and the corner of the screen
// when in the compact window mode.
gfx::Size compact_status_area_offset_;