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

Unified Diff: ash/common/ash_layout_constants.cc

Issue 2467313003: Update ash_layout_constants after changing meaning of ui::MDC::GetMode() (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/ash_layout_constants.cc
diff --git a/ash/common/ash_layout_constants.cc b/ash/common/ash_layout_constants.cc
index 0e1e2c2d2d5879011d5a418da75197a9411c9437..e3a98ee14d22eba2664e364f334c5f953914ce1e 100644
--- a/ash/common/ash_layout_constants.cc
+++ b/ash/common/ash_layout_constants.cc
@@ -8,12 +8,12 @@
#include "ui/base/material_design/material_design_controller.h"
gfx::Size GetAshLayoutSize(AshLayoutSize size) {
- const int kBrowserMaximizedCaptionButtonHeight[] = {27, 29, 33};
- const int kBrowserMaximizedCaptionButtonWidth[] = {35, 32, 32};
- const int kBrowserRestoredCaptionButtonHeight[] = {35, 36, 40};
- const int kBrowserRestoredCaptionButtonWidth[] = {35, 32, 32};
- const int kNonBrowserCaptionButtonHeight[] = {33, 33, 33};
- const int kNonBrowserCaptionButtonWidth[] = {32, 32, 32};
+ const int kBrowserMaximizedCaptionButtonHeight[] = {29, 33};
+ const int kBrowserMaximizedCaptionButtonWidth[] = {32, 32};
+ const int kBrowserRestoredCaptionButtonHeight[] = {36, 40};
+ const int kBrowserRestoredCaptionButtonWidth[] = {32, 32};
+ const int kNonBrowserCaptionButtonHeight[] = {33, 33};
+ const int kNonBrowserCaptionButtonWidth[] = {32, 32};
const int mode = ui::MaterialDesignController::GetMode();
Daniel Erat 2016/11/03 18:37:20 maybe DCHECK_LT(mode, arraysize(kBrowserMaximizedC
Evan Stade 2016/11/03 19:29:00 it wouldn't have helped in this case, as the enum
switch (size) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698