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