| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 | 11 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) { | 131 GtkWidget* ViewIDUtil::GetWidget(GtkWidget* root, ViewID id) { |
| 132 ViewIDSearchStruct search_struct = { id, NULL }; | 132 ViewIDSearchStruct search_struct = { id, NULL }; |
| 133 SearchForWidgetWithViewID(root, &search_struct); | 133 SearchForWidgetWithViewID(root, &search_struct); |
| 134 return search_struct.widget; | 134 return search_struct.widget; |
| 135 } | 135 } |
| 136 | 136 |
| 137 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) { | 137 void ViewIDUtil::SetDelegateForWidget(GtkWidget* widget, Delegate* delegate) { |
| 138 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate); | 138 g_object_set_data(G_OBJECT(widget), kViewIDOverrideString, delegate); |
| 139 } | 139 } |
| OLD | NEW |