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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h

Issue 10787037: browser/ui: Share BookmarkBarInstructions delegate between gtk and views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h
index 42dc39cfb14ccaa34fd389d3c40821e9a5e296f1..a4205255e73066fcaf182e481578c7aa89e9a1e4 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h
@@ -15,19 +15,14 @@ typedef struct _GtkWidget GtkWidget;
class GtkThemeService;
class Profile;
+namespace chrome {
+class BookmarkBarInstructionsDelegate;
+}
+
class BookmarkBarInstructionsGtk : public content::NotificationObserver {
public:
- // The delegate is notified once the user clicks on the link to import
- // bookmarks.
- class Delegate {
- public:
- virtual void ShowImportDialog() = 0;
-
- protected:
- virtual ~Delegate() {}
- };
-
- BookmarkBarInstructionsGtk(Delegate* delegate, Profile* profile);
+ BookmarkBarInstructionsGtk(chrome::BookmarkBarInstructionsDelegate* delegate,
+ Profile* profile);
// Get the native widget.
GtkWidget* widget() const { return instructions_hbox_; }
@@ -43,7 +38,7 @@ class BookmarkBarInstructionsGtk : public content::NotificationObserver {
// Sets the correct color for |instructions_label_| and |instructions_link_|.
void UpdateColors();
- Delegate* delegate_;
+ chrome::BookmarkBarInstructionsDelegate* delegate_;
Profile* profile_;
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698