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

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

Issue 10830140: GTK implementation of the action box button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forward delare Created 8 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
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/view_id_util.h" 5 #include "chrome/browser/ui/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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 case VIEW_ID_STAR_BUTTON: 80 case VIEW_ID_STAR_BUTTON:
81 return "chrome-toolbar-star-button"; 81 return "chrome-toolbar-star-button";
82 82
83 case VIEW_ID_CHROME_TO_MOBILE_BUTTON: 83 case VIEW_ID_CHROME_TO_MOBILE_BUTTON:
84 return "chrome-toolbar-chrome-to-mobile-button"; 84 return "chrome-toolbar-chrome-to-mobile-button";
85 85
86 case VIEW_ID_LOCATION_BAR: 86 case VIEW_ID_LOCATION_BAR:
87 return "chrome-location-bar"; 87 return "chrome-location-bar";
88 88
89 case VIEW_ID_ACTION_BOX_BUTTON:
90 return "chrome-action-box-button";
91
89 case VIEW_ID_BROWSER_ACTION_TOOLBAR: 92 case VIEW_ID_BROWSER_ACTION_TOOLBAR:
90 return "chrome-toolbar-browser-actions-container"; 93 return "chrome-toolbar-browser-actions-container";
91 94
92 case VIEW_ID_APP_MENU: 95 case VIEW_ID_APP_MENU:
93 return "chrome-app-menu"; 96 return "chrome-app-menu";
94 97
95 case VIEW_ID_AUTOCOMPLETE: 98 case VIEW_ID_AUTOCOMPLETE:
96 return "chrome-autocomplete-edit"; 99 return "chrome-autocomplete-edit";
97 100
98 case VIEW_ID_BOOKMARK_BAR: 101 case VIEW_ID_BOOKMARK_BAR:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 135
133 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) { 136 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) {
134 ViewIDSearchStruct search_struct = { id, NULL }; 137 ViewIDSearchStruct search_struct = { id, NULL };
135 SearchForWidgetWithViewID(root, &search_struct); 138 SearchForWidgetWithViewID(root, &search_struct);
136 return search_struct.widget; 139 return search_struct.widget;
137 } 140 }
138 141
139 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) { 142 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) {
140 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate); 143 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate);
141 } 144 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698