OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |