| 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 "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_menu_controller_win.h" | 10 #include "chrome/browser/bookmarks/bookmark_menu_controller_win.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // the bookmark bar. | 89 // the bookmark bar. |
| 90 void SetPageNavigator(PageNavigator* navigator); | 90 void SetPageNavigator(PageNavigator* navigator); |
| 91 | 91 |
| 92 // View methods: | 92 // View methods: |
| 93 virtual gfx::Size GetPreferredSize(); | 93 virtual gfx::Size GetPreferredSize(); |
| 94 virtual gfx::Size GetMinimumSize(); | 94 virtual gfx::Size GetMinimumSize(); |
| 95 virtual void Layout(); | 95 virtual void Layout(); |
| 96 virtual void DidChangeBounds(const gfx::Rect& previous, | 96 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 97 const gfx::Rect& current); | 97 const gfx::Rect& current); |
| 98 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 98 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 99 virtual void Paint(ChromeCanvas* canvas); | 99 virtual void Paint(gfx::Canvas* canvas); |
| 100 virtual void PaintChildren(ChromeCanvas* canvas); | 100 virtual void PaintChildren(gfx::Canvas* canvas); |
| 101 virtual bool CanDrop(const OSExchangeData& data); | 101 virtual bool CanDrop(const OSExchangeData& data); |
| 102 virtual void OnDragEntered(const views::DropTargetEvent& event); | 102 virtual void OnDragEntered(const views::DropTargetEvent& event); |
| 103 virtual int OnDragUpdated(const views::DropTargetEvent& event); | 103 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
| 104 virtual void OnDragExited(); | 104 virtual void OnDragExited(); |
| 105 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 105 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 106 | 106 |
| 107 // Called when fullscreen mode toggles on or off; this affects our layout. | 107 // Called when fullscreen mode toggles on or off; this affects our layout. |
| 108 void OnFullscreenToggled(bool fullscreen); | 108 void OnFullscreenToggled(bool fullscreen); |
| 109 | 109 |
| 110 // Sets the model change listener to listener. | 110 // Sets the model change listener to listener. |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // overflow_button_ or a button on the bar. | 425 // overflow_button_ or a button on the bar. |
| 426 views::CustomButton* throbbing_view_; | 426 views::CustomButton* throbbing_view_; |
| 427 | 427 |
| 428 // Background for extension toolstrips. | 428 // Background for extension toolstrips. |
| 429 SkBitmap toolstrip_background_; | 429 SkBitmap toolstrip_background_; |
| 430 | 430 |
| 431 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 431 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 434 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |