Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: chrome/browser/ui/libgtkui/gtk2_status_icon.h

Issue 2449243002: Gtk3 ui: Add libgtk3ui as a separate build component (Closed)
Patch Set: Add theme_properties dep to //chrome/browser/ui Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK2_STATUS_ICON_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK2_STATUS_ICON_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" 12 #include "chrome/browser/ui/libgtkui/gtk2_signal.h"
13 #include "ui/base/glib/glib_integers.h" 13 #include "ui/base/glib/glib_integers.h"
14 #include "ui/base/glib/glib_signal.h" 14 #include "ui/base/glib/glib_signal.h"
15 #include "ui/views/linux_ui/status_icon_linux.h" 15 #include "ui/views/linux_ui/status_icon_linux.h"
16 16
17 typedef struct _GtkStatusIcon GtkStatusIcon; 17 typedef struct _GtkStatusIcon GtkStatusIcon;
18 18
19 namespace gfx { 19 namespace gfx {
20 class ImageSkia; 20 class ImageSkia;
21 } 21 }
22 22
23 namespace ui { 23 namespace ui {
24 class MenuModel; 24 class MenuModel;
25 } 25 }
26 26
27 namespace libgtk2ui { 27 namespace libgtkui {
28 class AppIndicatorIconMenu; 28 class AppIndicatorIconMenu;
29 29
30 // Status icon implementation which uses the system tray X11 spec (via 30 // Status icon implementation which uses the system tray X11 spec (via
31 // GtkStatusIcon). 31 // GtkStatusIcon).
32 class Gtk2StatusIcon : public views::StatusIconLinux { 32 class Gtk2StatusIcon : public views::StatusIconLinux {
33 public: 33 public:
34 Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip); 34 Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip);
35 ~Gtk2StatusIcon() override; 35 ~Gtk2StatusIcon() override;
36 36
37 // Overridden from views::StatusIconLinux: 37 // Overridden from views::StatusIconLinux:
(...skipping 12 matching lines...) Expand all
50 guint, 50 guint,
51 guint); 51 guint);
52 52
53 GtkStatusIcon* gtk_status_icon_; 53 GtkStatusIcon* gtk_status_icon_;
54 54
55 std::unique_ptr<AppIndicatorIconMenu> menu_; 55 std::unique_ptr<AppIndicatorIconMenu> menu_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(Gtk2StatusIcon); 57 DISALLOW_COPY_AND_ASSIGN(Gtk2StatusIcon);
58 }; 58 };
59 59
60 } // namespace libgtk2ui 60 } // namespace libgtkui
61 61
62 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_ 62 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK2_STATUS_ICON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk2_signal.h ('k') | chrome/browser/ui/libgtkui/gtk2_status_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698