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

Unified Diff: ash/shelf/overflow_button.h

Issue 1659283002: ash: Explicitly teach various components about ShelfLayoutManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-ui-event-platform-event
Patch Set: fix-test Created 4 years, 11 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/shelf/overflow_bubble_view.cc ('k') | ash/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/overflow_button.h
diff --git a/ash/shelf/overflow_button.h b/ash/shelf/overflow_button.h
index 04f01faee5e0eff93ff8f68002ef4ad7f6f9c4d5..23270ddbbe7e4a6ab6572aed2bbe88d270521019 100644
--- a/ash/shelf/overflow_button.h
+++ b/ash/shelf/overflow_button.h
@@ -13,10 +13,12 @@
namespace ash {
+class ShelfLayoutManager;
+
// Shelf overflow chevron button.
class OverflowButton : public views::CustomButton {
public:
- explicit OverflowButton(views::ButtonListener* listener);
+ OverflowButton(views::ButtonListener* listener, ShelfLayoutManager* shelf);
~OverflowButton() override;
void OnShelfAlignmentChanged();
@@ -33,6 +35,7 @@ class OverflowButton : public views::CustomButton {
gfx::ImageSkia right_image_;
// Bottom image is owned by the resource bundle.
const gfx::ImageSkia* bottom_image_;
+ ShelfLayoutManager* shelf_;
DISALLOW_COPY_AND_ASSIGN(OverflowButton);
};
« no previous file with comments | « ash/shelf/overflow_bubble_view.cc ('k') | ash/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698