OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #include "grit/theme_resources.h" | 88 #include "grit/theme_resources.h" |
89 #include "grit/theme_resources_standard.h" | 89 #include "grit/theme_resources_standard.h" |
90 #include "grit/ui_resources.h" | 90 #include "grit/ui_resources.h" |
91 #include "grit/webkit_resources.h" | 91 #include "grit/webkit_resources.h" |
92 #include "ui/base/accessibility/accessible_view_state.h" | 92 #include "ui/base/accessibility/accessible_view_state.h" |
93 #include "ui/base/hit_test.h" | 93 #include "ui/base/hit_test.h" |
94 #include "ui/base/l10n/l10n_util.h" | 94 #include "ui/base/l10n/l10n_util.h" |
95 #include "ui/base/models/accelerator.h" | 95 #include "ui/base/models/accelerator.h" |
96 #include "ui/base/resource/resource_bundle.h" | 96 #include "ui/base/resource/resource_bundle.h" |
97 #include "ui/gfx/canvas_skia.h" | 97 #include "ui/gfx/canvas_skia.h" |
| 98 #include "ui/views/events/event.h" |
| 99 #include "ui/views/focus/external_focus_tracker.h" |
| 100 #include "ui/views/focus/view_storage.h" |
| 101 #include "ui/views/layout/grid_layout.h" |
98 #include "ui/views/window/dialog_delegate.h" | 102 #include "ui/views/window/dialog_delegate.h" |
99 #include "views/controls/single_split_view.h" | 103 #include "views/controls/single_split_view.h" |
100 #include "views/events/event.h" | |
101 #include "views/focus/external_focus_tracker.h" | |
102 #include "views/focus/view_storage.h" | |
103 #include "views/layout/grid_layout.h" | |
104 #include "views/widget/native_widget.h" | 104 #include "views/widget/native_widget.h" |
105 #include "views/widget/root_view.h" | 105 #include "views/widget/root_view.h" |
106 #include "views/widget/widget.h" | 106 #include "views/widget/widget.h" |
107 | 107 |
108 #if defined(USE_AURA) | 108 #if defined(USE_AURA) |
109 #include "chrome/browser/ui/views/accelerator_table.h" | 109 #include "chrome/browser/ui/views/accelerator_table.h" |
110 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" | 110 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" |
111 #include "chrome/browser/ui/views/aura/launcher_icon_updater.h" | 111 #include "chrome/browser/ui/views/aura/launcher_icon_updater.h" |
112 #include "ui/aura_shell/launcher/launcher.h" | 112 #include "ui/aura_shell/launcher/launcher.h" |
113 #include "ui/aura_shell/launcher/launcher_model.h" | 113 #include "ui/aura_shell/launcher/launcher_model.h" |
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, | 2618 Bubble::Show(this->GetWidget(), bounds, views::BubbleBorder::TOP_RIGHT, |
2619 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, | 2619 views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, |
2620 bubble_view, bubble_view); | 2620 bubble_view, bubble_view); |
2621 } | 2621 } |
2622 | 2622 |
2623 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2623 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
2624 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2624 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
2625 if (button) | 2625 if (button) |
2626 button->ShowAvatarBubble(); | 2626 button->ShowAvatarBubble(); |
2627 } | 2627 } |
OLD | NEW |