summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_bar_instructions_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/bookmark_bar_instructions_view.h')
-rw-r--r--chrome/browser/views/bookmark_bar_instructions_view.h61
1 files changed, 3 insertions, 58 deletions
diff --git a/chrome/browser/views/bookmark_bar_instructions_view.h b/chrome/browser/views/bookmark_bar_instructions_view.h
index 2156bf8..599ad78 100644
--- a/chrome/browser/views/bookmark_bar_instructions_view.h
+++ b/chrome/browser/views/bookmark_bar_instructions_view.h
@@ -6,63 +6,8 @@
#define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_
#pragma once
-#include "views/view.h"
-#include "views/controls/link.h"
-
-namespace views {
-class Label;
-class Link;
-}
-
-// BookmarkBarInstructionsView is a child of the bookmark bar that is visible
-// when the user has no bookmarks on the bookmark bar.
-// BookmarkBarInstructionsView shows a description of the bookmarks bar along
-// with a link to import bookmarks. Clicking the link results in notifying the
-// delegate.
-class BookmarkBarInstructionsView : public views::View,
- public views::LinkController {
- 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() {}
- };
-
- explicit BookmarkBarInstructionsView(Delegate* delegate);
-
- // View overrides.
- virtual gfx::Size GetPreferredSize();
- virtual void Layout();
- virtual void OnThemeChanged();
- virtual void ViewHierarchyChanged(bool is_add,
- views::View* parent,
- views::View* child);
- virtual AccessibilityTypes::Role GetAccessibleRole();
-
- // LinkController.
- virtual void LinkActivated(views::Link* source, int event_flags);
-
- private:
- void UpdateColors();
-
- Delegate* delegate_;
-
- views::Label* instructions_;
- views::Link* import_link_;
-
- // The baseline of the child views. This is -1 if none of the views support a
- // baseline.
- int baseline_;
-
- // Have the colors of the child views been updated? This is initially false
- // and set to true once we have a valid ThemeProvider.
- bool updated_colors_;
-
- DISALLOW_COPY_AND_ASSIGN(BookmarkBarInstructionsView);
-};
+#include "chrome/browser/ui/views/bookmark_bar_instructions_view.h"
+// TODO(beng): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_INSTRUCTIONS_VIEW_H_
+