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

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

Issue 681823004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APP_INDICATOR_ICON_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 15 matching lines...) Expand all
26 class AppIndicatorIconMenu; 26 class AppIndicatorIconMenu;
27 27
28 // Status icon implementation which uses libappindicator. 28 // Status icon implementation which uses libappindicator.
29 class AppIndicatorIcon : public views::StatusIconLinux { 29 class AppIndicatorIcon : public views::StatusIconLinux {
30 public: 30 public:
31 // The id uniquely identifies the new status icon from other chrome status 31 // The id uniquely identifies the new status icon from other chrome status
32 // icons. 32 // icons.
33 AppIndicatorIcon(std::string id, 33 AppIndicatorIcon(std::string id,
34 const gfx::ImageSkia& image, 34 const gfx::ImageSkia& image,
35 const base::string16& tool_tip); 35 const base::string16& tool_tip);
36 virtual ~AppIndicatorIcon(); 36 ~AppIndicatorIcon() override;
37 37
38 // Indicates whether libappindicator so could be opened. 38 // Indicates whether libappindicator so could be opened.
39 static bool CouldOpen(); 39 static bool CouldOpen();
40 40
41 // Overridden from views::StatusIconLinux: 41 // Overridden from views::StatusIconLinux:
42 virtual void SetImage(const gfx::ImageSkia& image) override; 42 void SetImage(const gfx::ImageSkia& image) override;
43 virtual void SetToolTip(const base::string16& tool_tip) override; 43 void SetToolTip(const base::string16& tool_tip) override;
44 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) override; 44 void UpdatePlatformContextMenu(ui::MenuModel* menu) override;
45 virtual void RefreshPlatformContextMenu() override; 45 void RefreshPlatformContextMenu() override;
46 46
47 private: 47 private:
48 void SetImageFromFile(const base::FilePath& icon_file_path); 48 void SetImageFromFile(const base::FilePath& icon_file_path);
49 void SetMenu(); 49 void SetMenu();
50 50
51 // Sets a menu item at the top of the menu as a replacement for the status 51 // Sets a menu item at the top of the menu as a replacement for the status
52 // icon click action. Clicking on this menu item should simulate a status icon 52 // icon click action. Clicking on this menu item should simulate a status icon
53 // click by despatching a click event. 53 // click by despatching a click event.
54 void UpdateClickActionReplacementMenuItem(); 54 void UpdateClickActionReplacementMenuItem();
55 55
(...skipping 16 matching lines...) Expand all
72 int icon_change_count_; 72 int icon_change_count_;
73 73
74 base::WeakPtrFactory<AppIndicatorIcon> weak_factory_; 74 base::WeakPtrFactory<AppIndicatorIcon> weak_factory_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(AppIndicatorIcon); 76 DISALLOW_COPY_AND_ASSIGN(AppIndicatorIcon);
77 }; 77 };
78 78
79 } // namespace libgtk2ui 79 } // namespace libgtk2ui
80 80
81 #endif // CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_ 81 #endif // CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gesture_prefs_observer_factory_aura.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698