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

Side by Side Diff: chrome/browser/views/bookmark_bar_view.h

Issue 20423: Preliminary fullscreen mode support.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/browser/browser_window.h ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_BOOKMARK_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
7 7
8 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 8 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/common/slide_animation.h" 10 #include "chrome/common/slide_animation.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const gfx::Rect& current); 99 const gfx::Rect& current);
100 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 100 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
101 virtual void Paint(ChromeCanvas* canvas); 101 virtual void Paint(ChromeCanvas* canvas);
102 virtual void PaintChildren(ChromeCanvas* canvas); 102 virtual void PaintChildren(ChromeCanvas* canvas);
103 virtual bool CanDrop(const OSExchangeData& data); 103 virtual bool CanDrop(const OSExchangeData& data);
104 virtual void OnDragEntered(const views::DropTargetEvent& event); 104 virtual void OnDragEntered(const views::DropTargetEvent& event);
105 virtual int OnDragUpdated(const views::DropTargetEvent& event); 105 virtual int OnDragUpdated(const views::DropTargetEvent& event);
106 virtual void OnDragExited(); 106 virtual void OnDragExited();
107 virtual int OnPerformDrop(const views::DropTargetEvent& event); 107 virtual int OnPerformDrop(const views::DropTargetEvent& event);
108 108
109 // Called when fullscreen mode toggles on or off; this affects our layout.
110 void OnFullscreenToggled(bool fullscreen);
111
109 // Sets the model change listener to listener. 112 // Sets the model change listener to listener.
110 void SetModelChangedListener(ModelChangedListener* listener) { 113 void SetModelChangedListener(ModelChangedListener* listener) {
111 model_changed_listener_ = listener; 114 model_changed_listener_ = listener;
112 } 115 }
113 116
114 // If the ModelChangedListener is listener, ModelChangeListener is set to 117 // If the ModelChangedListener is listener, ModelChangeListener is set to
115 // NULL. 118 // NULL.
116 void ClearModelChangedListenerIfEquals(ModelChangedListener* listener) { 119 void ClearModelChangedListenerIfEquals(ModelChangedListener* listener) {
117 if (model_changed_listener_ == listener) 120 if (model_changed_listener_ == listener)
118 model_changed_listener_ = NULL; 121 model_changed_listener_ = NULL;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // If the bookmark bubble is showing, this is the visible ancestor of the URL. 431 // If the bookmark bubble is showing, this is the visible ancestor of the URL.
429 // The visible ancestor is either the other_bookmarked_button_, 432 // The visible ancestor is either the other_bookmarked_button_,
430 // overflow_button_ or a button on the bar. 433 // overflow_button_ or a button on the bar.
431 views::BaseButton* throbbing_view_; 434 views::BaseButton* throbbing_view_;
432 435
433 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 436 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
434 }; 437 };
435 438
436 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 439 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
437 440
OLDNEW
« no previous file with comments | « chrome/browser/browser_window.h ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698