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

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

Issue 473: Readding UI test I pulled yesterday; hopefully the bots will like it more now... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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) 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/bookmark_bar_model.h" 8 #include "chrome/browser/bookmark_bar_model.h"
9 #include "chrome/browser/bookmark_drag_data.h" 9 #include "chrome/browser/bookmark_drag_data.h"
10 #include "chrome/common/slide_animation.h" 10 #include "chrome/common/slide_animation.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Returns true if the bookmarks bar preference is set to 'always show', we 129 // Returns true if the bookmarks bar preference is set to 'always show', we
130 // use this as a shorthand way of knowing what style of bar to draw (if the 130 // use this as a shorthand way of knowing what style of bar to draw (if the
131 // pref is set to false but we're painting, then we must be on the new tab 131 // pref is set to false but we're painting, then we must be on the new tab
132 // page). 132 // page).
133 bool IsAlwaysShown(); 133 bool IsAlwaysShown();
134 134
135 // True if we're supposed to draw the bookmarks bar in the new tab style. 135 // True if we're supposed to draw the bookmarks bar in the new tab style.
136 bool IsNewTabPage(); 136 bool IsNewTabPage();
137 137
138 // Whether or not we are animating.
139 bool IsAnimating() { return size_animation_->IsAnimating(); }
140
138 // SlideAnimationDelegate implementation. 141 // SlideAnimationDelegate implementation.
139 void AnimationProgressed(const Animation* animation); 142 void AnimationProgressed(const Animation* animation);
140 void AnimationEnded(const Animation* animation); 143 void AnimationEnded(const Animation* animation);
141 144
142 // Returns the button at the specified index. 145 // Returns the button at the specified index.
143 ChromeViews::TextButton* GetBookmarkButton(int index); 146 ChromeViews::TextButton* GetBookmarkButton(int index);
144 147
145 // Returns the button responsible for showing bookmarks in the other bookmark 148 // Returns the button responsible for showing bookmarks in the other bookmark
146 // folder. 149 // folder.
147 ChromeViews::TextButton* other_bookmarked_button() const { 150 ChromeViews::TextButton* other_bookmarked_button() const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 view_->show_folder_drop_menu_task_ = NULL; 190 view_->show_folder_drop_menu_task_ = NULL;
188 view_->ShowDropFolderForNode(node_); 191 view_->ShowDropFolderForNode(node_);
189 } 192 }
190 // MessageLoop deletes us. 193 // MessageLoop deletes us.
191 } 194 }
192 195
193 private: 196 private:
194 BookmarkBarView* view_; 197 BookmarkBarView* view_;
195 BookmarkBarNode* node_; 198 BookmarkBarNode* node_;
196 199
197 DISALLOW_EVIL_CONSTRUCTORS(ShowFolderDropMenuTask); 200 DISALLOW_COPY_AND_ASSIGN(ShowFolderDropMenuTask);
198 }; 201 };
199 202
200 // Creates recent bookmark button and when visible button as well as 203 // Creates recent bookmark button and when visible button as well as
201 // calculating the preferred height. 204 // calculating the preferred height.
202 void Init(); 205 void Init();
203 206
204 // Creates the button showing the other bookmarked items. 207 // Creates the button showing the other bookmarked items.
205 ChromeViews::MenuButton* CreateOtherBookmarkedButton(); 208 ChromeViews::MenuButton* CreateOtherBookmarkedButton();
206 209
207 // Creates the button used when not all bookmark buttons fit. 210 // Creates the button used when not all bookmark buttons fit.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // If the bookmark bubble is showing, this is the visible ancestor of the URL. 436 // If the bookmark bubble is showing, this is the visible ancestor of the URL.
434 // The visible ancestor is either the other_bookmarked_button_, 437 // The visible ancestor is either the other_bookmarked_button_,
435 // overflow_button_ or a button on the bar. 438 // overflow_button_ or a button on the bar.
436 ChromeViews::BaseButton* throbbing_view_; 439 ChromeViews::BaseButton* throbbing_view_;
437 440
438 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 441 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
439 }; 442 };
440 443
441 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 444 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
442 445
OLDNEW
« no previous file with comments | « chrome/browser/find_in_page_controller_uitest.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698