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

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

Issue 309103002: Make the system tray icons display when using KDE4 and plasma (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/app_indicator_icon.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // icon click action. Clicking on this menu item should simulate a status icon 53 // icon click action. Clicking on this menu item should simulate a status icon
54 // click by despatching a click event. 54 // click by despatching a click event.
55 void UpdateClickActionReplacementMenuItem(); 55 void UpdateClickActionReplacementMenuItem();
56 56
57 // Callback for when the status icon click replacement menu item is activated. 57 // Callback for when the status icon click replacement menu item is activated.
58 void OnClickActionReplacementMenuItemActivated(); 58 void OnClickActionReplacementMenuItemActivated();
59 59
60 std::string id_; 60 std::string id_;
61 std::string tool_tip_; 61 std::string tool_tip_;
62 62
63 // Whether the user is using KDE.
64 bool using_kde4_;
65
63 // Gtk status icon wrapper 66 // Gtk status icon wrapper
64 AppIndicator* icon_; 67 AppIndicator* icon_;
65 68
66 scoped_ptr<AppIndicatorIconMenu> menu_; 69 scoped_ptr<AppIndicatorIconMenu> menu_;
67 ui::MenuModel* menu_model_; 70 ui::MenuModel* menu_model_;
68 71
69 base::FilePath icon_file_path_; 72 base::FilePath icon_file_path_;
70 int icon_change_count_; 73 int icon_change_count_;
71 74
72 base::WeakPtrFactory<AppIndicatorIcon> weak_factory_; 75 base::WeakPtrFactory<AppIndicatorIcon> weak_factory_;
73 76
74 DISALLOW_COPY_AND_ASSIGN(AppIndicatorIcon); 77 DISALLOW_COPY_AND_ASSIGN(AppIndicatorIcon);
75 }; 78 };
76 79
77 } // namespace libgtk2ui 80 } // namespace libgtk2ui
78 81
79 #endif // CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_ 82 #endif // CHROME_BROWSER_UI_LIBGTK2UI_APP_INDICATOR_ICON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/app_indicator_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698