| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" | 42 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" |
| 43 #include "chrome/browser/ui/views/toolbar/home_button.h" | 43 #include "chrome/browser/ui/views/toolbar/home_button.h" |
| 44 #include "chrome/browser/ui/views/toolbar/reload_button.h" | 44 #include "chrome/browser/ui/views/toolbar/reload_button.h" |
| 45 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" | 45 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" |
| 46 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" | 46 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" |
| 47 #include "chrome/browser/ui/views/translate/translate_icon_view.h" | 47 #include "chrome/browser/ui/views/translate/translate_icon_view.h" |
| 48 #include "chrome/common/chrome_switches.h" | 48 #include "chrome/common/chrome_switches.h" |
| 49 #include "chrome/common/pref_names.h" | 49 #include "chrome/common/pref_names.h" |
| 50 #include "chrome/grit/chromium_strings.h" | 50 #include "chrome/grit/chromium_strings.h" |
| 51 #include "chrome/grit/generated_resources.h" | 51 #include "chrome/grit/generated_resources.h" |
| 52 #include "chrome/grit/theme_resources.h" | |
| 53 #include "components/omnibox/browser/omnibox_view.h" | 52 #include "components/omnibox/browser/omnibox_view.h" |
| 54 #include "components/prefs/pref_service.h" | 53 #include "components/prefs/pref_service.h" |
| 55 #include "components/strings/grit/components_strings.h" | 54 #include "components/strings/grit/components_strings.h" |
| 56 #include "content/public/browser/browser_accessibility_state.h" | 55 #include "content/public/browser/browser_accessibility_state.h" |
| 57 #include "content/public/browser/notification_service.h" | 56 #include "content/public/browser/notification_service.h" |
| 58 #include "content/public/browser/render_view_host.h" | 57 #include "content/public/browser/render_view_host.h" |
| 59 #include "content/public/browser/web_contents.h" | 58 #include "content/public/browser/web_contents.h" |
| 60 #include "ui/accessibility/ax_node_data.h" | 59 #include "ui/accessibility/ax_node_data.h" |
| 61 #include "ui/base/l10n/l10n_util.h" | 60 #include "ui/base/l10n/l10n_util.h" |
| 62 #include "ui/base/material_design/material_design_controller.h" | 61 #include "ui/base/material_design/material_design_controller.h" |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 if (OutdatedUpgradeBubbleView::IsAvailable()) { | 758 if (OutdatedUpgradeBubbleView::IsAvailable()) { |
| 760 OutdatedUpgradeBubbleView::ShowBubble(app_menu_button_, browser_, | 759 OutdatedUpgradeBubbleView::ShowBubble(app_menu_button_, browser_, |
| 761 auto_update_enabled); | 760 auto_update_enabled); |
| 762 } | 761 } |
| 763 } | 762 } |
| 764 | 763 |
| 765 void ToolbarView::OnShowHomeButtonChanged() { | 764 void ToolbarView::OnShowHomeButtonChanged() { |
| 766 Layout(); | 765 Layout(); |
| 767 SchedulePaint(); | 766 SchedulePaint(); |
| 768 } | 767 } |
| OLD | NEW |