| OLD | NEW |
| 1 // Copyright (c) 2011 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 #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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 #include "ui/base/gtk/gtk_signal.h" | 13 #include "ui/base/gtk/gtk_signal.h" |
| 14 | 14 |
| 15 typedef struct _GtkWidget GtkWidget; | 15 typedef struct _GtkWidget GtkWidget; |
| 16 class GtkThemeService; | 16 class ThemeServiceGtk; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 class BookmarkBarInstructionsGtk : public content::NotificationObserver { | 19 class BookmarkBarInstructionsGtk : public content::NotificationObserver { |
| 20 public: | 20 public: |
| 21 // The delegate is notified once the user clicks on the link to import | 21 // The delegate is notified once the user clicks on the link to import |
| 22 // bookmarks. | 22 // bookmarks. |
| 23 class Delegate { | 23 class Delegate { |
| 24 public: | 24 public: |
| 25 virtual void ShowImportDialog() = 0; | 25 virtual void ShowImportDialog() = 0; |
| 26 | 26 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 CHROMEGTK_CALLBACK_0(BookmarkBarInstructionsGtk, void, OnButtonClick); | 42 CHROMEGTK_CALLBACK_0(BookmarkBarInstructionsGtk, void, OnButtonClick); |
| 43 | 43 |
| 44 // Sets the correct color for |instructions_label_| and |instructions_link_|. | 44 // Sets the correct color for |instructions_label_| and |instructions_link_|. |
| 45 void UpdateColors(); | 45 void UpdateColors(); |
| 46 | 46 |
| 47 Delegate* delegate_; | 47 Delegate* delegate_; |
| 48 | 48 |
| 49 Profile* profile_; | 49 Profile* profile_; |
| 50 | 50 |
| 51 GtkThemeService* theme_service_; | 51 ThemeServiceGtk* theme_service_; |
| 52 | 52 |
| 53 // HBox that holds the the label and link of bookmark bar import promotion. | 53 // HBox that holds the the label and link of bookmark bar import promotion. |
| 54 GtkWidget* instructions_hbox_; | 54 GtkWidget* instructions_hbox_; |
| 55 GtkWidget* instructions_label_; | 55 GtkWidget* instructions_label_; |
| 56 GtkWidget* instructions_link_; | 56 GtkWidget* instructions_link_; |
| 57 | 57 |
| 58 content::NotificationRegistrar registrar_; | 58 content::NotificationRegistrar registrar_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsGtk); | 60 DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsGtk); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_ | 63 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_INSTRUCTIONS_GTK_H_ |
| OLD | NEW |