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); |