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

Side by Side Diff: chrome/browser/ui/views/toolbar/app_menu_button.cc

Issue 1508203003: Move layout_constants.cc from c/b/ui/views/ to c/b/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: what is mus Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" 5 #include "chrome/browser/ui/views/toolbar/app_menu_button.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/themes/theme_properties.h" 11 #include "chrome/browser/themes/theme_properties.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/layout_constants.h"
13 #include "chrome/browser/ui/toolbar/app_menu_model.h" 14 #include "chrome/browser/ui/toolbar/app_menu_model.h"
14 #include "chrome/browser/ui/views/extensions/browser_action_drag_data.h" 15 #include "chrome/browser/ui/views/extensions/browser_action_drag_data.h"
15 #include "chrome/browser/ui/views/layout_constants.h"
16 #include "chrome/browser/ui/views/toolbar/app_menu.h" 16 #include "chrome/browser/ui/views/toolbar/app_menu.h"
17 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" 17 #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
18 #include "extensions/common/feature_switch.h" 18 #include "extensions/common/feature_switch.h"
19 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 #include "ui/base/resource/material_design/material_design_controller.h" 20 #include "ui/base/resource/material_design/material_design_controller.h"
21 #include "ui/base/resource/resource_bundle.h" 21 #include "ui/base/resource/resource_bundle.h"
22 #include "ui/base/theme_provider.h" 22 #include "ui/base/theme_provider.h"
23 #include "ui/gfx/color_palette.h" 23 #include "ui/gfx/color_palette.h"
24 #include "ui/gfx/paint_vector_icon.h" 24 #include "ui/gfx/paint_vector_icon.h"
25 #include "ui/gfx/vector_icons_public.h" 25 #include "ui/gfx/vector_icons_public.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 views::MenuButton::OnPaint(canvas); 305 views::MenuButton::OnPaint(canvas);
306 if (ui::MaterialDesignController::IsModeMaterial()) 306 if (ui::MaterialDesignController::IsModeMaterial())
307 return; 307 return;
308 // Use GetPreferredSize() to center the icon inside the visible bounds rather 308 // Use GetPreferredSize() to center the icon inside the visible bounds rather
309 // than the whole size() (which may refer to hit test region extended to the 309 // than the whole size() (which may refer to hit test region extended to the
310 // end of the toolbar in maximized mode). 310 // end of the toolbar in maximized mode).
311 icon_painter_->Paint(canvas, GetThemeProvider(), 311 icon_painter_->Paint(canvas, GetThemeProvider(),
312 gfx::Rect(GetPreferredSize()), 312 gfx::Rect(GetPreferredSize()),
313 AppMenuIconPainter::BEZEL_NONE); 313 AppMenuIconPainter::BEZEL_NONE);
314 } 314 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698