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

Side by Side Diff: chrome/browser/gtk/view_id_util.cc

Issue 2853024: Remove the bookmark menu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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) 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/view_id_util.h" 5 #include "chrome/browser/gtk/view_id_util.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 9
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 case VIEW_ID_PAGE_MENU: 89 case VIEW_ID_PAGE_MENU:
90 return "chrome-page-menu"; 90 return "chrome-page-menu";
91 91
92 case VIEW_ID_APP_MENU: 92 case VIEW_ID_APP_MENU:
93 return "chrome-app-menu"; 93 return "chrome-app-menu";
94 94
95 case VIEW_ID_AUTOCOMPLETE: 95 case VIEW_ID_AUTOCOMPLETE:
96 return "chrome-autocomplete-edit"; 96 return "chrome-autocomplete-edit";
97 97
98 case VIEW_ID_BOOKMARK_MENU:
99 return "chrome-bookmark-menu";
100
101 case VIEW_ID_BOOKMARK_BAR: 98 case VIEW_ID_BOOKMARK_BAR:
102 return "chrome-bookmark-bar"; 99 return "chrome-bookmark-bar";
103 100
104 case VIEW_ID_OTHER_BOOKMARKS: 101 case VIEW_ID_OTHER_BOOKMARKS:
105 return "chrome-bookmark-bar-other-bookmarks"; 102 return "chrome-bookmark-bar-other-bookmarks";
106 103
107 case VIEW_ID_FIND_IN_PAGE_TEXT_FIELD: 104 case VIEW_ID_FIND_IN_PAGE_TEXT_FIELD:
108 return "chrome-find-in-page-entry"; 105 return "chrome-find-in-page-entry";
109 106
110 case VIEW_ID_FIND_IN_PAGE: 107 case VIEW_ID_FIND_IN_PAGE:
(...skipping 28 matching lines...) Expand all
139 136
140 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) { 137 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) {
141 ViewIDSearchStruct search_struct = { id, NULL }; 138 ViewIDSearchStruct search_struct = { id, NULL };
142 SearchForWidgetWithViewID(root, &search_struct); 139 SearchForWidgetWithViewID(root, &search_struct);
143 return search_struct.widget; 140 return search_struct.widget;
144 } 141 }
145 142
146 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) { 143 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) {
147 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate); 144 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate);
148 } 145 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_menu_controller_gtk.cc ('k') | chrome/browser/gtk/view_id_util_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698