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

Side by Side Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 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_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/notification_observer.h" 10 #include "content/common/notification_observer.h"
(...skipping 16 matching lines...) Expand all
27 virtual ~Delegate() {} 27 virtual ~Delegate() {}
28 }; 28 };
29 29
30 explicit BookmarkBarInstructionsGtk(Delegate* delegate, Profile* profile); 30 explicit BookmarkBarInstructionsGtk(Delegate* delegate, Profile* profile);
31 31
32 // Get the native widget. 32 // Get the native widget.
33 GtkWidget* widget() const { return instructions_hbox_; } 33 GtkWidget* widget() const { return instructions_hbox_; }
34 34
35 private: 35 private:
36 // Overridden from NotificationObserver: 36 // Overridden from NotificationObserver:
37 virtual void Observe(NotificationType type, 37 virtual void Observe(int type,
38 const NotificationSource& source, 38 const NotificationSource& source,
39 const NotificationDetails& details); 39 const NotificationDetails& details);
40 40
41 CHROMEGTK_CALLBACK_0(BookmarkBarInstructionsGtk, void, OnButtonClick); 41 CHROMEGTK_CALLBACK_0(BookmarkBarInstructionsGtk, void, OnButtonClick);
42 42
43 // Sets the correct color for |instructions_label_| and |instructions_link_|. 43 // Sets the correct color for |instructions_label_| and |instructions_link_|.
44 void UpdateColors(); 44 void UpdateColors();
45 45
46 Delegate* delegate_; 46 Delegate* delegate_;
47 47
48 Profile* profile_; 48 Profile* profile_;
49 49
50 GtkThemeService* theme_service_; 50 GtkThemeService* theme_service_;
51 51
52 // HBox that holds the the label and link of bookmark bar import promotion. 52 // HBox that holds the the label and link of bookmark bar import promotion.
53 GtkWidget* instructions_hbox_; 53 GtkWidget* instructions_hbox_;
54 GtkWidget* instructions_label_; 54 GtkWidget* instructions_label_;
55 GtkWidget* instructions_link_; 55 GtkWidget* instructions_link_;
56 56
57 NotificationRegistrar registrar_; 57 NotificationRegistrar registrar_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsGtk); 59 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsGtk);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_ 62 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_
OLDNEW
« 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