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

Unified Diff: ash/root_window_controller.h

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/launcher/launcher_view_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.h
diff --git a/ash/root_window_controller.h b/ash/root_window_controller.h
index 07f08b4c1997d63dc38faddf7b61b9b5692099bf..27132ac5d00d0efc23328239e6dcb7a061a4e78b 100644
--- a/ash/root_window_controller.h
+++ b/ash/root_window_controller.h
@@ -48,6 +48,12 @@ class ASH_EXPORT RootWindowController {
explicit RootWindowController(aura::RootWindow* root_window);
~RootWindowController();
+ // Returns a RootWindowController that has a launcher for given
+ // |window|. This returns the RootWindowController for the |window|'s
+ // root window when multiple launcher mode is enabled, or the primary
+ // RootWindowController otherwise.
+ static RootWindowController* ForLauncher(aura::Window* window);
+
aura::RootWindow* root_window() { return root_window_.get(); }
RootWindowLayoutManager* root_window_layout() { return root_window_layout_; }
@@ -60,10 +66,9 @@ class ASH_EXPORT RootWindowController {
Launcher* launcher() { return launcher_.get(); }
- // TODO(sky): don't expose this!
- internal::ShelfLayoutManager* shelf() const { return shelf_; }
+ ShelfLayoutManager* shelf() const { return shelf_; }
- internal::StatusAreaWidget* status_area_widget() const {
+ StatusAreaWidget* status_area_widget() const {
return status_area_widget_;
}
@@ -131,15 +136,15 @@ private:
RootWindowLayoutManager* root_window_layout_;
// Widget containing system tray.
- internal::StatusAreaWidget* status_area_widget_;
+ StatusAreaWidget* status_area_widget_;
// The shelf for managing the launcher and the status widget.
// RootWindowController does not own the shelf. Instead, it is owned
// by container of the status area.
- internal::ShelfLayoutManager* shelf_;
+ ShelfLayoutManager* shelf_;
// Manages layout of panels. Owned by PanelContainer.
- internal::PanelLayoutManager* panel_layout_manager_;
+ PanelLayoutManager* panel_layout_manager_;
scoped_ptr<Launcher> launcher_;
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698