| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "chrome/common/pref_names.h" | 50 #include "chrome/common/pref_names.h" |
| 51 #include "chrome/grit/chromium_strings.h" | 51 #include "chrome/grit/chromium_strings.h" |
| 52 #include "chrome/grit/generated_resources.h" | 52 #include "chrome/grit/generated_resources.h" |
| 53 #include "content/public/browser/browser_accessibility_state.h" | 53 #include "content/public/browser/browser_accessibility_state.h" |
| 54 #include "content/public/browser/notification_service.h" | 54 #include "content/public/browser/notification_service.h" |
| 55 #include "content/public/browser/render_view_host.h" | 55 #include "content/public/browser/render_view_host.h" |
| 56 #include "content/public/browser/user_metrics.h" | 56 #include "content/public/browser/user_metrics.h" |
| 57 #include "content/public/browser/web_contents.h" | 57 #include "content/public/browser/web_contents.h" |
| 58 #include "grit/theme_resources.h" | 58 #include "grit/theme_resources.h" |
| 59 #include "ui/accessibility/ax_view_state.h" | 59 #include "ui/accessibility/ax_view_state.h" |
| 60 #include "ui/aura/window.h" | |
| 61 #include "ui/base/l10n/l10n_util.h" | 60 #include "ui/base/l10n/l10n_util.h" |
| 62 #include "ui/base/theme_provider.h" | 61 #include "ui/base/theme_provider.h" |
| 63 #include "ui/base/window_open_disposition.h" | 62 #include "ui/base/window_open_disposition.h" |
| 64 #include "ui/compositor/layer.h" | 63 #include "ui/compositor/layer.h" |
| 65 #include "ui/gfx/canvas.h" | 64 #include "ui/gfx/canvas.h" |
| 66 #include "ui/gfx/image/canvas_image_source.h" | 65 #include "ui/gfx/image/canvas_image_source.h" |
| 67 #include "ui/keyboard/keyboard_controller.h" | 66 #include "ui/keyboard/keyboard_controller.h" |
| 68 #include "ui/native_theme/native_theme_aura.h" | 67 #include "ui/native_theme/native_theme_aura.h" |
| 69 #include "ui/views/controls/menu/menu_listener.h" | 68 #include "ui/views/controls/menu/menu_listener.h" |
| 70 #include "ui/views/focus/view_storage.h" | 69 #include "ui/views/focus/view_storage.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 | 785 |
| 787 void ToolbarView::OnShowHomeButtonChanged() { | 786 void ToolbarView::OnShowHomeButtonChanged() { |
| 788 Layout(); | 787 Layout(); |
| 789 SchedulePaint(); | 788 SchedulePaint(); |
| 790 } | 789 } |
| 791 | 790 |
| 792 int ToolbarView::content_shadow_height() const { | 791 int ToolbarView::content_shadow_height() const { |
| 793 return browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH ? | 792 return browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH ? |
| 794 kContentShadowHeightAsh : kContentShadowHeight; | 793 kContentShadowHeightAsh : kContentShadowHeight; |
| 795 } | 794 } |
| OLD | NEW |