| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void SetProfile(Profile* profile); | 79 void SetProfile(Profile* profile); |
| 80 | 80 |
| 81 // Returns the current profile. | 81 // Returns the current profile. |
| 82 Profile* GetProfile() { return profile_; } | 82 Profile* GetProfile() { return profile_; } |
| 83 | 83 |
| 84 // Sets the PageNavigator that is used when the user selects an entry on | 84 // Sets the PageNavigator that is used when the user selects an entry on |
| 85 // the bookmark bar. | 85 // the bookmark bar. |
| 86 void SetPageNavigator(PageNavigator* navigator); | 86 void SetPageNavigator(PageNavigator* navigator); |
| 87 | 87 |
| 88 // View methods: | 88 // View methods: |
| 89 virtual void GetPreferredSize(CSize *out); | 89 virtual gfx::Size GetPreferredSize(); |
| 90 virtual void Layout(); | 90 virtual void Layout(); |
| 91 virtual void DidChangeBounds(const CRect& previous, const CRect& current); | 91 virtual void DidChangeBounds(const CRect& previous, const CRect& current); |
| 92 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 92 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 93 virtual void Paint(ChromeCanvas* canvas); | 93 virtual void Paint(ChromeCanvas* canvas); |
| 94 virtual void PaintChildren(ChromeCanvas* canvas); | 94 virtual void PaintChildren(ChromeCanvas* canvas); |
| 95 virtual bool CanDrop(const OSExchangeData& data); | 95 virtual bool CanDrop(const OSExchangeData& data); |
| 96 virtual void OnDragEntered(const ChromeViews::DropTargetEvent& event); | 96 virtual void OnDragEntered(const ChromeViews::DropTargetEvent& event); |
| 97 virtual int OnDragUpdated(const ChromeViews::DropTargetEvent& event); | 97 virtual int OnDragUpdated(const ChromeViews::DropTargetEvent& event); |
| 98 virtual void OnDragExited(); | 98 virtual void OnDragExited(); |
| 99 virtual int OnPerformDrop(const ChromeViews::DropTargetEvent& event); | 99 virtual int OnPerformDrop(const ChromeViews::DropTargetEvent& event); |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 // If the bookmark bubble is showing, this is the visible ancestor of the URL. | 433 // If the bookmark bubble is showing, this is the visible ancestor of the URL. |
| 434 // The visible ancestor is either the other_bookmarked_button_, | 434 // The visible ancestor is either the other_bookmarked_button_, |
| 435 // overflow_button_ or a button on the bar. | 435 // overflow_button_ or a button on the bar. |
| 436 ChromeViews::BaseButton* throbbing_view_; | 436 ChromeViews::BaseButton* throbbing_view_; |
| 437 | 437 |
| 438 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 438 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 439 }; | 439 }; |
| 440 | 440 |
| 441 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 441 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
| 442 | 442 |
| OLD | NEW |