OLD | NEW |
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/toolbar_button.h" | 5 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "build/build_config.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/themes/theme_service.h" | 13 #include "chrome/browser/themes/theme_service.h" |
13 #include "chrome/browser/themes/theme_service_factory.h" | 14 #include "chrome/browser/themes/theme_service_factory.h" |
14 #include "chrome/browser/ui/layout_constants.h" | 15 #include "chrome/browser/ui/layout_constants.h" |
15 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 16 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
16 #include "ui/accessibility/ax_view_state.h" | 17 #include "ui/accessibility/ax_view_state.h" |
17 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/base/models/menu_model.h" | 19 #include "ui/base/models/menu_model.h" |
19 #include "ui/base/resource/material_design/material_design_controller.h" | 20 #include "ui/base/resource/material_design/material_design_controller.h" |
20 #include "ui/base/theme_provider.h" | 21 #include "ui/base/theme_provider.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 SetState(STATE_NORMAL); | 299 SetState(STATE_NORMAL); |
299 } | 300 } |
300 | 301 |
301 const char* ToolbarButton::GetClassName() const { | 302 const char* ToolbarButton::GetClassName() const { |
302 return "ToolbarButton"; | 303 return "ToolbarButton"; |
303 } | 304 } |
304 | 305 |
305 gfx::Point ToolbarButton::CalculateInkDropCenter() const { | 306 gfx::Point ToolbarButton::CalculateInkDropCenter() const { |
306 return GetLocalBounds().CenterPoint(); | 307 return GetLocalBounds().CenterPoint(); |
307 } | 308 } |
OLD | NEW |