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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" | 59 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" |
60 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" | 60 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" |
61 #include "chrome/browser/ui/views/status_bubble_views.h" | 61 #include "chrome/browser/ui/views/status_bubble_views.h" |
62 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 62 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
63 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | 63 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" |
64 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h" | 64 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h" |
65 #include "chrome/browser/ui/views/toolbar_view.h" | 65 #include "chrome/browser/ui/views/toolbar_view.h" |
66 #include "chrome/browser/ui/views/update_recommended_message_box.h" | 66 #include "chrome/browser/ui/views/update_recommended_message_box.h" |
67 #include "chrome/browser/ui/views/window.h" | 67 #include "chrome/browser/ui/views/window.h" |
68 #include "chrome/browser/ui/webui/feedback_ui.h" | 68 #include "chrome/browser/ui/webui/feedback_ui.h" |
69 #include "chrome/browser/ui/webui/task_manager_dialog.h" | 69 #include "chrome/browser/ui/webui/task_manager/task_manager_dialog.h" |
70 #include "chrome/browser/ui/window_sizer.h" | 70 #include "chrome/browser/ui/window_sizer.h" |
71 #include "chrome/common/chrome_notification_types.h" | 71 #include "chrome/common/chrome_notification_types.h" |
72 #include "chrome/common/chrome_switches.h" | 72 #include "chrome/common/chrome_switches.h" |
73 #include "chrome/common/extensions/extension_resource.h" | 73 #include "chrome/common/extensions/extension_resource.h" |
74 #include "chrome/common/pref_names.h" | 74 #include "chrome/common/pref_names.h" |
75 #include "chrome/common/url_constants.h" | 75 #include "chrome/common/url_constants.h" |
76 #include "content/browser/renderer_host/render_view_host.h" | 76 #include "content/browser/renderer_host/render_view_host.h" |
77 #include "content/public/browser/download_manager.h" | 77 #include "content/public/browser/download_manager.h" |
78 #include "content/public/browser/notification_service.h" | 78 #include "content/public/browser/notification_service.h" |
79 #include "content/public/browser/user_metrics.h" | 79 #include "content/public/browser/user_metrics.h" |
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 browser::CreateViewsBubble(bubble); | 2560 browser::CreateViewsBubble(bubble); |
2561 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2561 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
2562 bubble->Show(); | 2562 bubble->Show(); |
2563 } | 2563 } |
2564 | 2564 |
2565 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2565 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
2566 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2566 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
2567 if (button) | 2567 if (button) |
2568 button->ShowAvatarBubble(); | 2568 button->ShowAvatarBubble(); |
2569 } | 2569 } |
OLD | NEW |