| OLD | NEW |
| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 int index); | 263 int index); |
| 264 | 264 |
| 265 // Notifies ModelChangedListener and invokes BookmarkNodeChangedImpl. | 265 // Notifies ModelChangedListener and invokes BookmarkNodeChangedImpl. |
| 266 virtual void BookmarkNodeChanged(BookmarkModel* model, | 266 virtual void BookmarkNodeChanged(BookmarkModel* model, |
| 267 BookmarkNode* node); | 267 BookmarkNode* node); |
| 268 | 268 |
| 269 // If the node is a child of the root node, the button is updated | 269 // If the node is a child of the root node, the button is updated |
| 270 // appropriately. | 270 // appropriately. |
| 271 void BookmarkNodeChangedImpl(BookmarkModel* model, BookmarkNode* node); | 271 void BookmarkNodeChangedImpl(BookmarkModel* model, BookmarkNode* node); |
| 272 | 272 |
| 273 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, |
| 274 BookmarkNode* node); |
| 275 |
| 273 // Invoked when the favicon is available. If the node is a child of the | 276 // Invoked when the favicon is available. If the node is a child of the |
| 274 // root node, the appropriate button is updated. If a menu is showing, the | 277 // root node, the appropriate button is updated. If a menu is showing, the |
| 275 // call is forwarded to the menu to allow for it to update the icon. | 278 // call is forwarded to the menu to allow for it to update the icon. |
| 276 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, | 279 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, |
| 277 BookmarkNode* node); | 280 BookmarkNode* node); |
| 278 | 281 |
| 279 // DragController method. Determines the node representing sender and invokes | 282 // DragController method. Determines the node representing sender and invokes |
| 280 // WriteDragData to write the actual data. | 283 // WriteDragData to write the actual data. |
| 281 virtual void WriteDragData(views::View* sender, | 284 virtual void WriteDragData(views::View* sender, |
| 282 int press_x, | 285 int press_x, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 // If the bookmark bubble is showing, this is the visible ancestor of the URL. | 434 // If the bookmark bubble is showing, this is the visible ancestor of the URL. |
| 432 // The visible ancestor is either the other_bookmarked_button_, | 435 // The visible ancestor is either the other_bookmarked_button_, |
| 433 // overflow_button_ or a button on the bar. | 436 // overflow_button_ or a button on the bar. |
| 434 views::BaseButton* throbbing_view_; | 437 views::BaseButton* throbbing_view_; |
| 435 | 438 |
| 436 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 439 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 437 }; | 440 }; |
| 438 | 441 |
| 439 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 442 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 440 | 443 |
| OLD | NEW |