| 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_view.h" | 5 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "chrome/grit/generated_resources.h" | 48 #include "chrome/grit/generated_resources.h" |
| 49 #include "components/omnibox/browser/omnibox_view.h" | 49 #include "components/omnibox/browser/omnibox_view.h" |
| 50 #include "components/prefs/pref_service.h" | 50 #include "components/prefs/pref_service.h" |
| 51 #include "content/public/browser/browser_accessibility_state.h" | 51 #include "content/public/browser/browser_accessibility_state.h" |
| 52 #include "content/public/browser/notification_service.h" | 52 #include "content/public/browser/notification_service.h" |
| 53 #include "content/public/browser/render_view_host.h" | 53 #include "content/public/browser/render_view_host.h" |
| 54 #include "content/public/browser/user_metrics.h" | 54 #include "content/public/browser/user_metrics.h" |
| 55 #include "content/public/browser/web_contents.h" | 55 #include "content/public/browser/web_contents.h" |
| 56 #include "grit/components_strings.h" | 56 #include "grit/components_strings.h" |
| 57 #include "grit/theme_resources.h" | 57 #include "grit/theme_resources.h" |
| 58 #include "ui/accessibility/ax_enums.h" |
| 58 #include "ui/accessibility/ax_view_state.h" | 59 #include "ui/accessibility/ax_view_state.h" |
| 59 #include "ui/base/l10n/l10n_util.h" | 60 #include "ui/base/l10n/l10n_util.h" |
| 60 #include "ui/base/material_design/material_design_controller.h" | 61 #include "ui/base/material_design/material_design_controller.h" |
| 61 #include "ui/base/theme_provider.h" | 62 #include "ui/base/theme_provider.h" |
| 62 #include "ui/base/window_open_disposition.h" | 63 #include "ui/base/window_open_disposition.h" |
| 63 #include "ui/compositor/layer.h" | 64 #include "ui/compositor/layer.h" |
| 64 #include "ui/gfx/canvas.h" | 65 #include "ui/gfx/canvas.h" |
| 65 #include "ui/gfx/image/canvas_image_source.h" | 66 #include "ui/gfx/image/canvas_image_source.h" |
| 66 #include "ui/gfx/paint_vector_icon.h" | 67 #include "ui/gfx/paint_vector_icon.h" |
| 67 #include "ui/gfx/vector_icons_public.h" | 68 #include "ui/gfx/vector_icons_public.h" |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 SchedulePaint(); | 797 SchedulePaint(); |
| 797 } | 798 } |
| 798 | 799 |
| 799 int ToolbarView::content_shadow_height() const { | 800 int ToolbarView::content_shadow_height() const { |
| 800 #if defined(USE_ASH) | 801 #if defined(USE_ASH) |
| 801 return GetLayoutConstant(TOOLBAR_CONTENT_SHADOW_HEIGHT_ASH); | 802 return GetLayoutConstant(TOOLBAR_CONTENT_SHADOW_HEIGHT_ASH); |
| 802 #else | 803 #else |
| 803 return GetLayoutConstant(TOOLBAR_CONTENT_SHADOW_HEIGHT); | 804 return GetLayoutConstant(TOOLBAR_CONTENT_SHADOW_HEIGHT); |
| 804 #endif | 805 #endif |
| 805 } | 806 } |
| OLD | NEW |