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

Side by Side Diff: chrome/browser/gtk/status_icons/status_icon_gtk.cc

Issue 3189003: Added support for context menus to status icons. (Closed)
Patch Set: Final version. Created 10 years, 4 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/gtk/status_icons/status_icon_gtk.h" 5 #include "chrome/browser/gtk/status_icons/status_icon_gtk.h"
6 6
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "gfx/gtk_util.h" 10 #include "gfx/gtk_util.h"
(...skipping 22 matching lines...) Expand all
33 33
34 void StatusIconGtk::SetPressedImage(const SkBitmap& image) { 34 void StatusIconGtk::SetPressedImage(const SkBitmap& image) {
35 // Ignore pressed images, since the standard on Linux is to not highlight 35 // Ignore pressed images, since the standard on Linux is to not highlight
36 // pressed status icons. 36 // pressed status icons.
37 } 37 }
38 38
39 void StatusIconGtk::SetToolTip(const string16& tool_tip) { 39 void StatusIconGtk::SetToolTip(const string16& tool_tip) {
40 gtk_status_icon_set_tooltip(icon_, UTF16ToUTF8(tool_tip).c_str()); 40 gtk_status_icon_set_tooltip(icon_, UTF16ToUTF8(tool_tip).c_str());
41 } 41 }
42 42
43 void StatusIconGtk::ResetContextMenu(menus::MenuModel* menu) {
44 // TODO(atwilson): Add support for context menus for GTK
45 // (http://crbug.com.37375).
46 }
47
43 void StatusIconGtk::OnClick(GtkWidget* widget) { 48 void StatusIconGtk::OnClick(GtkWidget* widget) {
44 DispatchClickEvent(); 49 DispatchClickEvent();
45 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/status_icons/status_icon_gtk.h ('k') | chrome/browser/status_icons/status_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698