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/gtk/avatar_menu_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/avatar_menu_bubble_gtk.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/profiles/avatar_menu_model.h" | 9 #include "chrome/browser/profiles/avatar_menu_model.h" |
10 #include "chrome/browser/profiles/profile_info_cache.h" | 10 #include "chrome/browser/profiles/profile_info_cache.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/gtk/avatar_menu_item_gtk.h" | 13 #include "chrome/browser/ui/gtk/avatar_menu_item_gtk.h" |
14 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" | 14 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" |
15 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 15 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
| 16 #include "chrome/browser/ui/gtk/event_utils.h" |
16 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 17 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
17 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
18 #include "chrome/browser/ui/gtk/gtk_util.h" | |
19 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" | 19 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
20 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "ui/base/gtk/gtk_hig_constants.h" | 23 #include "ui/base/gtk/gtk_hig_constants.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // The minimum width in pixels of the bubble. | 28 // The minimum width in pixels of the bubble. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 0, 0, kNewProfileLinkLeftPadding, 0); | 172 0, 0, kNewProfileLinkLeftPadding, 0); |
173 gtk_container_add(GTK_CONTAINER(link_align), new_profile_link_); | 173 gtk_container_add(GTK_CONTAINER(link_align), new_profile_link_); |
174 | 174 |
175 gtk_box_pack_start(GTK_BOX(contents_), link_align, FALSE, FALSE, 0); | 175 gtk_box_pack_start(GTK_BOX(contents_), link_align, FALSE, FALSE, 0); |
176 } | 176 } |
177 | 177 |
178 void AvatarMenuBubbleGtk::CloseBubble() { | 178 void AvatarMenuBubbleGtk::CloseBubble() { |
179 bubble_->Close(); | 179 bubble_->Close(); |
180 bubble_ = NULL; | 180 bubble_ = NULL; |
181 } | 181 } |
OLD | NEW |