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

Unified Diff: ash/root_window_controller.h

Issue 11476033: [Launcher per display] Removed Shell::status_area_widget(), system_tray() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: ash/root_window_controller.h
diff --git a/ash/root_window_controller.h b/ash/root_window_controller.h
index a8cb82f841e9c604f45ce5291a7b1a57f88bbfb8..65ad01ae76207cdc80ec61190bfb0679f452d3ad 100644
--- a/ash/root_window_controller.h
+++ b/ash/root_window_controller.h
@@ -32,6 +32,7 @@ class RootWindowEventFilter;
namespace ash {
class Launcher;
+class SystemTray;
class ToplevelWindowEventHandler;
namespace internal {
@@ -62,6 +63,12 @@ class ASH_EXPORT RootWindowController {
// RootWindowController otherwise.
static RootWindowController* ForLauncher(aura::Window* window);
+ // Returns a RootWnidowController of the window's root window.
sky 2012/12/07 23:53:00 RootWindowController
oshima 2012/12/08 00:00:45 Done.
+ static RootWindowController* ForWindow(aura::Window* window);
+
+ // Returns the RootWindowController of the active root window.
+ static internal::RootWindowController* ForActiveRootWindow();
+
aura::RootWindow* root_window() { return root_window_.get(); }
RootWindowLayoutManager* root_window_layout() { return root_window_layout_; }
@@ -76,10 +83,15 @@ class ASH_EXPORT RootWindowController {
ShelfLayoutManager* shelf() const { return shelf_; }
- StatusAreaWidget* status_area_widget() const {
+ StatusAreaWidget* status_area_widget() {
return status_area_widget_;
}
+ // Returns the system tray on this root window. Note that
+ // Calling this on the root window that doesn't have a launcher will
sky 2012/12/07 23:53:00 Calling -> calling
oshima 2012/12/08 00:00:45 Done.
+ // lead to a crash.
+ SystemTray* GetSystemTray();
+
// Shows context menu at the |location_in_screen|. This uses
// |ShellDelegate::CreateContextMenu| to define the content of the menu.
void ShowContextMenu(const gfx::Point& location_in_screen);

Powered by Google App Engine
This is Rietveld 408576698