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/panels/panel_browser_titlebar_gtk.h" | 5 #include "chrome/browser/ui/panels/panel_browser_titlebar_gtk.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/gtk/custom_button.h" | 9 #include "chrome/browser/ui/gtk/custom_button.h" |
10 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 10 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
11 #include "chrome/browser/ui/gtk/gtk_util.h" | 11 #include "chrome/browser/ui/gtk/gtk_util.h" |
12 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 12 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
13 #include "chrome/browser/ui/panels/panel.h" | 13 #include "chrome/browser/ui/panels/panel.h" |
14 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" | 14 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" |
15 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
16 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
20 #include "grit/theme_resources_standard.h" | |
21 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
22 #include "ui/base/gtk/gtk_compat.h" | 21 #include "ui/base/gtk/gtk_compat.h" |
23 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/gfx/skia_utils_gtk.h" | 24 #include "ui/gfx/skia_utils_gtk.h" |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 // Padding around the titlebar. | 28 // Padding around the titlebar. |
30 const int kPanelTitlebarPaddingTop = 7; | 29 const int kPanelTitlebarPaddingTop = 7; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 352 } |
354 | 353 |
355 void PanelBrowserTitlebarGtk::set_window(GtkWindow* window) { | 354 void PanelBrowserTitlebarGtk::set_window(GtkWindow* window) { |
356 window_ = window; | 355 window_ = window; |
357 } | 356 } |
358 | 357 |
359 AvatarMenuButtonGtk* PanelBrowserTitlebarGtk::avatar_button() const { | 358 AvatarMenuButtonGtk* PanelBrowserTitlebarGtk::avatar_button() const { |
360 // Not supported in panel. | 359 // Not supported in panel. |
361 return NULL; | 360 return NULL; |
362 } | 361 } |
OLD | NEW |