OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 // Creates the button used when not all bookmark buttons fit. | 292 // Creates the button used when not all bookmark buttons fit. |
293 views::MenuButton* CreateOverflowButton(); | 293 views::MenuButton* CreateOverflowButton(); |
294 | 294 |
295 // Creates the sync error button and adds it as a child view. | 295 // Creates the sync error button and adds it as a child view. |
296 views::TextButton* CreateSyncErrorButton(); | 296 views::TextButton* CreateSyncErrorButton(); |
297 | 297 |
298 // Creates the button for rendering the specified bookmark node. | 298 // Creates the button for rendering the specified bookmark node. |
299 views::View* CreateBookmarkButton(const BookmarkNode* node); | 299 views::View* CreateBookmarkButton(const BookmarkNode* node); |
300 | 300 |
301 // Configures the button from the specified node. This sets the text, | 301 // COnfigures the button from the specified node. This sets the text, |
302 // and icon. | 302 // and icon. |
303 void ConfigureButton(const BookmarkNode* node, views::TextButton* button); | 303 void ConfigureButton(const BookmarkNode* node, views::TextButton* button); |
304 | 304 |
305 // Implementation for BookmarkNodeAddedImpl. | 305 // Implementation for BookmarkNodeAddedImpl. |
306 void BookmarkNodeAddedImpl(BookmarkModel* model, | 306 void BookmarkNodeAddedImpl(BookmarkModel* model, |
307 const BookmarkNode* parent, | 307 const BookmarkNode* parent, |
308 int index); | 308 int index); |
309 | 309 |
310 // Implementation for BookmarkNodeRemoved. | 310 // Implementation for BookmarkNodeRemoved. |
311 void BookmarkNodeRemovedImpl(BookmarkModel* model, | 311 void BookmarkNodeRemovedImpl(BookmarkModel* model, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 BookmarkBar::State bookmark_bar_state_; | 422 BookmarkBar::State bookmark_bar_state_; |
423 | 423 |
424 // Are we animating to or from the detached state? | 424 // Are we animating to or from the detached state? |
425 bool animating_detached_; | 425 bool animating_detached_; |
426 | 426 |
427 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 427 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
428 }; | 428 }; |
429 | 429 |
430 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 430 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |