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

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

Issue 464163003: Remove IDR_STATUS_TRAY_ICON_PRESSED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the comment Created 6 years, 3 months 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_LIBGTK2UI_GTK2_STATUS_ICON_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" 10 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // Status icon implementation which uses the system tray X11 spec (via 28 // Status icon implementation which uses the system tray X11 spec (via
29 // GtkStatusIcon). 29 // GtkStatusIcon).
30 class Gtk2StatusIcon : public views::StatusIconLinux { 30 class Gtk2StatusIcon : public views::StatusIconLinux {
31 public: 31 public:
32 Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip); 32 Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip);
33 virtual ~Gtk2StatusIcon(); 33 virtual ~Gtk2StatusIcon();
34 34
35 // Overridden from views::StatusIconLinux: 35 // Overridden from views::StatusIconLinux:
36 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE; 36 virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE;
37 virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE;
38 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE; 37 virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE;
39 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE; 38 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE;
40 virtual void RefreshPlatformContextMenu() OVERRIDE; 39 virtual void RefreshPlatformContextMenu() OVERRIDE;
41 40
42 private: 41 private:
43 CHROMEG_CALLBACK_0(Gtk2StatusIcon, void, OnClick, GtkStatusIcon*); 42 CHROMEG_CALLBACK_0(Gtk2StatusIcon, void, OnClick, GtkStatusIcon*);
44 43
45 CHROMEG_CALLBACK_2(Gtk2StatusIcon, 44 CHROMEG_CALLBACK_2(Gtk2StatusIcon,
46 void, 45 void,
47 OnContextMenuRequested, 46 OnContextMenuRequested,
48 GtkStatusIcon*, 47 GtkStatusIcon*,
49 guint, 48 guint,
50 guint); 49 guint);
51 50
52 GtkStatusIcon* gtk_status_icon_; 51 GtkStatusIcon* gtk_status_icon_;
53 52
54 scoped_ptr<AppIndicatorIconMenu> menu_; 53 scoped_ptr<AppIndicatorIconMenu> menu_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(Gtk2StatusIcon); 55 DISALLOW_COPY_AND_ASSIGN(Gtk2StatusIcon);
57 }; 56 };
58 57
59 } // namespace libgtk2ui 58 } // namespace libgtk2ui
60 59
61 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_ 60 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/app_indicator_icon.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_status_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698