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

Unified Diff: ash/shelf/shelf.h

Issue 1743493002: Cleanup ash shelf accessor functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ShelfBrowserTest. Created 4 years, 10 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/root_window_controller.cc ('k') | ash/shelf/shelf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf.h
diff --git a/ash/shelf/shelf.h b/ash/shelf/shelf.h
index 59cb0099ed30c6b1940734042f17fdf1e162b3de..62042ff2bf01b7937ee5a730e593769e389fe665 100644
--- a/ash/shelf/shelf.h
+++ b/ash/shelf/shelf.h
@@ -8,6 +8,7 @@
#include "ash/ash_export.h"
#include "ash/shelf/shelf_constants.h"
#include "ash/shelf/shelf_types.h"
+#include "ash/shelf/shelf_widget.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/geometry/size.h"
@@ -35,13 +36,11 @@ class ShelfDelegate;
class ShelfIconObserver;
class ShelfModel;
class ShelfView;
-class ShelfWidget;
namespace test {
class ShelfTestAPI;
}
-
class ASH_EXPORT Shelf {
public:
static const char kNativeViewName[];
@@ -53,9 +52,9 @@ class ASH_EXPORT Shelf {
static Shelf* ForPrimaryDisplay();
// Return the shelf for the display that |window| is currently on, or a shelf
- // on primary display if the shelf per display feature is disabled. NULL if
- // no user is logged in yet.
- static Shelf* ForWindow(aura::Window* window);
+ // on primary display if the shelf per display feature is disabled. NULL if no
+ // user is logged in yet.
+ static Shelf* ForWindow(const aura::Window* window);
void SetAlignment(ShelfAlignment alignment);
ShelfAlignment alignment() const { return alignment_; }
@@ -95,6 +94,9 @@ class ASH_EXPORT Shelf {
void LaunchAppIndexAt(int item_index);
ShelfWidget* shelf_widget() { return shelf_widget_; }
+ ShelfLayoutManager* shelf_layout_manager() {
sky 2016/02/29 16:38:39 Seems unfortunate that we expose the ShelfLayoutMa
msw 2016/02/29 23:23:44 Agreed; I tackled some low-hanging fruit and added
+ return shelf_widget_->shelf_layout_manager();
+ }
// Set the bounds of the shelf view.
void SetShelfViewBounds(gfx::Rect bounds);
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698