| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, | 327 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, |
| 328 const BookmarkNode* node); | 328 const BookmarkNode* node); |
| 329 | 329 |
| 330 // DragController method. Determines the node representing sender and invokes | 330 // DragController method. Determines the node representing sender and invokes |
| 331 // WriteDragData to write the actual data. | 331 // WriteDragData to write the actual data. |
| 332 virtual void WriteDragData(views::View* sender, | 332 virtual void WriteDragData(views::View* sender, |
| 333 int press_x, | 333 int press_x, |
| 334 int press_y, | 334 int press_y, |
| 335 OSExchangeData* data); | 335 OSExchangeData* data); |
| 336 | 336 |
| 337 virtual bool CanStartDrag(views::View* sender, |
| 338 int press_x, |
| 339 int press_y, |
| 340 int x, |
| 341 int y); |
| 342 |
| 337 // Writes a BookmarkDragData for node to data. | 343 // Writes a BookmarkDragData for node to data. |
| 338 void WriteDragData(const BookmarkNode* node, OSExchangeData* data); | 344 void WriteDragData(const BookmarkNode* node, OSExchangeData* data); |
| 339 | 345 |
| 340 // Returns the drag operations for the specified button. | 346 // Returns the drag operations for the specified button. |
| 341 virtual int GetDragOperations(views::View* sender, int x, int y); | 347 virtual int GetDragOperations(views::View* sender, int x, int y); |
| 342 | 348 |
| 343 // ViewMenuDelegate method. Ends up creating a BookmarkMenuController to | 349 // ViewMenuDelegate method. Ends up creating a BookmarkMenuController to |
| 344 // show the menu. | 350 // show the menu. |
| 345 virtual void RunMenu(views::View* view, const gfx::Point& pt); | 351 virtual void RunMenu(views::View* view, const gfx::Point& pt); |
| 346 | 352 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 // overflow_button_ or a button on the bar. | 491 // overflow_button_ or a button on the bar. |
| 486 views::CustomButton* throbbing_view_; | 492 views::CustomButton* throbbing_view_; |
| 487 | 493 |
| 488 // Background for extension toolstrips. | 494 // Background for extension toolstrips. |
| 489 SkBitmap toolstrip_background_; | 495 SkBitmap toolstrip_background_; |
| 490 | 496 |
| 491 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 497 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 492 }; | 498 }; |
| 493 | 499 |
| 494 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 500 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |