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 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 #include "grit/locale_settings.h" | 85 #include "grit/locale_settings.h" |
86 #include "grit/theme_resources.h" | 86 #include "grit/theme_resources.h" |
87 #include "grit/theme_resources_standard.h" | 87 #include "grit/theme_resources_standard.h" |
88 #include "grit/ui_resources.h" | 88 #include "grit/ui_resources.h" |
89 #include "grit/webkit_resources.h" | 89 #include "grit/webkit_resources.h" |
90 #include "ui/base/accelerators/accelerator.h" | 90 #include "ui/base/accelerators/accelerator.h" |
91 #include "ui/base/accessibility/accessible_view_state.h" | 91 #include "ui/base/accessibility/accessible_view_state.h" |
92 #include "ui/base/hit_test.h" | 92 #include "ui/base/hit_test.h" |
93 #include "ui/base/l10n/l10n_util.h" | 93 #include "ui/base/l10n/l10n_util.h" |
94 #include "ui/base/resource/resource_bundle.h" | 94 #include "ui/base/resource/resource_bundle.h" |
95 #include "ui/gfx/canvas_skia.h" | 95 #include "ui/gfx/canvas.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 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 browser::CreateViewsBubble(bubble); | 2569 browser::CreateViewsBubble(bubble); |
2570 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2570 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
2571 bubble->Show(); | 2571 bubble->Show(); |
2572 } | 2572 } |
2573 | 2573 |
2574 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2574 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
2575 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2575 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
2576 if (button) | 2576 if (button) |
2577 button->ShowAvatarBubble(); | 2577 button->ShowAvatarBubble(); |
2578 } | 2578 } |
OLD | NEW |