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

Side by Side Diff: chrome/browser/ui/gtk/menu_gtk.cc

Issue 22314006: A few fixes for image search: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/gtk/menu_gtk.h" 5 #include "chrome/browser/ui/gtk/menu_gtk.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return false; 125 return false;
126 } 126 }
127 127
128 GtkIconSet* MenuGtk::Delegate::GetIconSetForId(int idr) { return NULL; } 128 GtkIconSet* MenuGtk::Delegate::GetIconSetForId(int idr) { return NULL; }
129 129
130 GtkWidget* MenuGtk::Delegate::GetDefaultImageForCommandId(int command_id) { 130 GtkWidget* MenuGtk::Delegate::GetDefaultImageForCommandId(int command_id) {
131 const char* stock; 131 const char* stock;
132 switch (command_id) { 132 switch (command_id) {
133 case IDC_NEW_TAB: 133 case IDC_NEW_TAB:
134 case IDC_CONTENT_CONTEXT_OPENIMAGENEWTAB: 134 case IDC_CONTENT_CONTEXT_OPENIMAGENEWTAB:
135 case IDC_CONTENT_CONTEXT_SEARCHIMAGENEWTAB: 135 case IDC_CONTENT_CONTEXT_SEARCHWEBFORIMAGE:
136 case IDC_CONTENT_CONTEXT_OPENLINKNEWTAB: 136 case IDC_CONTENT_CONTEXT_OPENLINKNEWTAB:
137 case IDC_CONTENT_CONTEXT_OPENAVNEWTAB: 137 case IDC_CONTENT_CONTEXT_OPENAVNEWTAB:
138 stock = GTK_STOCK_NEW; 138 stock = GTK_STOCK_NEW;
139 break; 139 break;
140 140
141 case IDC_CLOSE_TAB: 141 case IDC_CLOSE_TAB:
142 stock = GTK_STOCK_CLOSE; 142 stock = GTK_STOCK_CLOSE;
143 break; 143 break;
144 144
145 case IDC_CONTENT_CONTEXT_SAVEIMAGEAS: 145 case IDC_CONTENT_CONTEXT_SAVEIMAGEAS:
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 gtk_widget_hide(widget); 945 gtk_widget_hide(widget);
946 } 946 }
947 947
948 GtkWidget* submenu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(widget)); 948 GtkWidget* submenu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(widget));
949 if (submenu) { 949 if (submenu) {
950 gtk_container_foreach(GTK_CONTAINER(submenu), &SetMenuItemInfo, 950 gtk_container_foreach(GTK_CONTAINER(submenu), &SetMenuItemInfo,
951 userdata); 951 userdata);
952 } 952 }
953 } 953 }
954 } 954 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698