| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 | 12 |
| 13 #include "base/auto_reset.h" | 13 #include "base/auto_reset.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/app/chrome_command_ids.h" | 19 #include "chrome/app/chrome_command_ids.h" |
| 20 #include "chrome/app/chrome_dll_resource.h" | 20 #include "chrome/app/chrome_dll_resource.h" |
| 21 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 21 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 22 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" | 22 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" |
| 23 #include "chrome/browser/automation/ui_controls.h" | |
| 24 #include "chrome/browser/bookmarks/bookmark_utils.h" | 23 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 25 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 26 #include "chrome/browser/debugger/devtools_window.h" | 25 #include "chrome/browser/debugger/devtools_window.h" |
| 27 #include "chrome/browser/extensions/extension_tab_helper.h" | 26 #include "chrome/browser/extensions/extension_tab_helper.h" |
| 28 #include "chrome/browser/extensions/extension_tts_api.h" | 27 #include "chrome/browser/extensions/extension_tts_api.h" |
| 29 #include "chrome/browser/instant/instant_controller.h" | 28 #include "chrome/browser/instant/instant_controller.h" |
| 30 #include "chrome/browser/native_window_notification_source.h" | 29 #include "chrome/browser/native_window_notification_source.h" |
| 31 #include "chrome/browser/ntp_background_util.h" | 30 #include "chrome/browser/ntp_background_util.h" |
| 32 #include "chrome/browser/prefs/pref_service.h" | 31 #include "chrome/browser/prefs/pref_service.h" |
| 33 #include "chrome/browser/profiles/avatar_menu_model.h" | 32 #include "chrome/browser/profiles/avatar_menu_model.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #include "grit/theme_resources.h" | 85 #include "grit/theme_resources.h" |
| 87 #include "grit/theme_resources_standard.h" | 86 #include "grit/theme_resources_standard.h" |
| 88 #include "grit/ui_resources.h" | 87 #include "grit/ui_resources.h" |
| 89 #include "grit/webkit_resources.h" | 88 #include "grit/webkit_resources.h" |
| 90 #include "ui/base/accelerators/accelerator.h" | 89 #include "ui/base/accelerators/accelerator.h" |
| 91 #include "ui/base/accessibility/accessible_view_state.h" | 90 #include "ui/base/accessibility/accessible_view_state.h" |
| 92 #include "ui/base/hit_test.h" | 91 #include "ui/base/hit_test.h" |
| 93 #include "ui/base/l10n/l10n_util.h" | 92 #include "ui/base/l10n/l10n_util.h" |
| 94 #include "ui/base/resource/resource_bundle.h" | 93 #include "ui/base/resource/resource_bundle.h" |
| 95 #include "ui/gfx/canvas.h" | 94 #include "ui/gfx/canvas.h" |
| 95 #include "ui/ui_controls/ui_controls.h" |
| 96 #include "ui/views/controls/single_split_view.h" | 96 #include "ui/views/controls/single_split_view.h" |
| 97 #include "ui/views/events/event.h" | 97 #include "ui/views/events/event.h" |
| 98 #include "ui/views/focus/external_focus_tracker.h" | 98 #include "ui/views/focus/external_focus_tracker.h" |
| 99 #include "ui/views/focus/view_storage.h" | 99 #include "ui/views/focus/view_storage.h" |
| 100 #include "ui/views/layout/grid_layout.h" | 100 #include "ui/views/layout/grid_layout.h" |
| 101 #include "ui/views/widget/native_widget.h" | 101 #include "ui/views/widget/native_widget.h" |
| 102 #include "ui/views/widget/root_view.h" | 102 #include "ui/views/widget/root_view.h" |
| 103 #include "ui/views/widget/widget.h" | 103 #include "ui/views/widget/widget.h" |
| 104 #include "ui/views/window/dialog_delegate.h" | 104 #include "ui/views/window/dialog_delegate.h" |
| 105 | 105 |
| (...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 browser::CreateViewsBubble(bubble); | 2577 browser::CreateViewsBubble(bubble); |
| 2578 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2578 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
| 2579 bubble->Show(); | 2579 bubble->Show(); |
| 2580 } | 2580 } |
| 2581 | 2581 |
| 2582 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2582 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
| 2583 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2583 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
| 2584 if (button) | 2584 if (button) |
| 2585 button->ShowAvatarBubble(); | 2585 button->ShowAvatarBubble(); |
| 2586 } | 2586 } |
| OLD | NEW |