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

Unified Diff: ash/common/system/web_notification/web_notification_tray.cc

Issue 2099103002: Give Ash material design tray items the correct size and layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split shelf and tray constants Created 4 years, 6 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/common/system/tray/tray_constants.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/web_notification/web_notification_tray.cc
diff --git a/ash/common/system/web_notification/web_notification_tray.cc b/ash/common/system/web_notification/web_notification_tray.cc
index 9109408945a3b330263d8ba4c148d3f5f992b8e2..00ca5ae9d5b0c251e13a2912036a970ab0ae029e 100644
--- a/ash/common/system/web_notification/web_notification_tray.cc
+++ b/ash/common/system/web_notification/web_notification_tray.cc
@@ -160,7 +160,8 @@ class WebNotificationButton : public views::CustomButton {
protected:
// Overridden from views::ImageButton:
gfx::Size GetPreferredSize() const override {
- return gfx::Size(kShelfItemHeight, kShelfItemHeight);
+ const int size = GetTrayConstant(TRAY_ITEM_HEIGHT_LEGACY);
+ return gfx::Size(size, size);
}
int GetHeightForWidth(int width) const override {
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698