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

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

Issue 6099014: Move chrome/browser/gtk to chrome/browser/ui/gtk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move browser/gtk/ to browser/ui/gtk/, leave header stubs, update new header guards Created 9 years, 11 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) 2009 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 #ifndef CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_ 5 #ifndef CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_
6 #define CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_ 6 #define CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/gtk/view_id_util.h"
10 10 // TODO(msw): remove this file once all includes have been updated.
11 typedef struct _GtkWidget GtkWidget;
12
13 class ViewIDUtil {
14 public:
15 // Use this delegate to override default view id searches.
16 class Delegate {
17 public:
18 virtual GtkWidget* GetWidgetForViewID(ViewID id) = 0;
19
20 protected:
21 virtual ~Delegate() {}
22 };
23
24 // If you set the ID via this function, it will also set the name of your
25 // widget to a human-readable value for debugging.
26 static void SetID(GtkWidget* widget, ViewID id);
27
28 static GtkWidget* GetWidget(GtkWidget* root, ViewID id);
29
30 static void SetDelegateForWidget(GtkWidget* widget, Delegate* delegate);
31 };
32 11
33 #endif // CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_ 12 #endif // CHROME_BROWSER_GTK_VIEW_ID_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/update_recommended_dialog.h ('k') | chrome/browser/ui/gtk/about_chrome_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698