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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host.h

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 years, 7 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/views/dropdown_bar_host.h
===================================================================
--- chrome/browser/ui/views/dropdown_bar_host.h (revision 84869)
+++ chrome/browser/ui/views/dropdown_bar_host.h (working copy)
@@ -15,18 +15,19 @@
#include "views/focus/focus_manager.h"
class BrowserView;
+class DropdownBarHostDelegate;
class DropdownBarView;
class TabContents;
namespace ui {
class SlideAnimation;
-}
+} // namespace ui
namespace views {
class ExternalFocusTracker;
class View;
class Widget;
-}
+} // namespace views
////////////////////////////////////////////////////////////////////////////////
//
@@ -45,8 +46,7 @@
explicit DropdownBarHost(BrowserView* browser_view);
virtual ~DropdownBarHost();
- // Initializes the dropdown bar host with the give view.
- void Init(DropdownBarView* view);
+ void Init(views::View* view, DropdownBarHostDelegate* delegate);
// Whether we are animating the position of the dropdown widget.
bool IsAnimating() const;
@@ -101,7 +101,7 @@
protected:
// Returns the dropdown bar view.
- DropdownBarView* view() const { return view_; }
+ views::View* view() const { return view_; }
// Returns the focus tracker.
views::ExternalFocusTracker* focus_tracker() const {
@@ -154,7 +154,8 @@
BrowserView* browser_view_;
// Our view, which is responsible for drawing the UI.
- DropdownBarView* view_;
+ views::View* view_;
+ DropdownBarHostDelegate* delegate_;
// The y position pixel offset of the widget while animating the
// dropdown widget.
« no previous file with comments | « chrome/browser/ui/views/compact_nav/compact_options_bar.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698