| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 Profile* profile); | 159 Profile* profile); |
| 160 | 160 |
| 161 // DetachableToolbarView methods: | 161 // DetachableToolbarView methods: |
| 162 virtual bool IsDetached() const OVERRIDE; | 162 virtual bool IsDetached() const OVERRIDE; |
| 163 virtual double GetAnimationValue() const OVERRIDE; | 163 virtual double GetAnimationValue() const OVERRIDE; |
| 164 virtual int GetToolbarOverlap() const OVERRIDE; | 164 virtual int GetToolbarOverlap() const OVERRIDE; |
| 165 | 165 |
| 166 // View methods: | 166 // View methods: |
| 167 virtual gfx::Size GetPreferredSize() OVERRIDE; | 167 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 168 virtual gfx::Size GetMinimumSize() OVERRIDE; | 168 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 169 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; | |
| 170 virtual void Layout() OVERRIDE; | 169 virtual void Layout() OVERRIDE; |
| 171 virtual void ViewHierarchyChanged( | 170 virtual void ViewHierarchyChanged( |
| 172 const ViewHierarchyChangedDetails& details) OVERRIDE; | 171 const ViewHierarchyChangedDetails& details) OVERRIDE; |
| 173 virtual void PaintChildren(gfx::Canvas* canvas, | 172 virtual void PaintChildren(gfx::Canvas* canvas, |
| 174 const views::CullSet& cull_set) OVERRIDE; | 173 const views::CullSet& cull_set) OVERRIDE; |
| 175 virtual bool GetDropFormats( | 174 virtual bool GetDropFormats( |
| 176 int* formats, | 175 int* formats, |
| 177 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 176 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
| 178 virtual bool AreDropTypesRequired() OVERRIDE; | 177 virtual bool AreDropTypesRequired() OVERRIDE; |
| 179 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; | 178 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; |
| 180 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
| 181 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 180 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
| 182 virtual void OnDragExited() OVERRIDE; | 181 virtual void OnDragExited() OVERRIDE; |
| 183 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 182 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 184 virtual void OnThemeChanged() OVERRIDE; | 183 virtual void OnThemeChanged() OVERRIDE; |
| 185 virtual const char* GetClassName() const OVERRIDE; | 184 virtual const char* GetClassName() const OVERRIDE; |
| 186 | 185 |
| 186 // ui::EventTarget: |
| 187 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; |
| 188 |
| 187 // AccessiblePaneView: | 189 // AccessiblePaneView: |
| 188 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 190 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
| 189 | 191 |
| 190 // gfx::AnimationDelegate: | 192 // gfx::AnimationDelegate: |
| 191 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; | 193 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; |
| 192 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; | 194 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; |
| 193 | 195 |
| 194 // BookmarkMenuControllerObserver: | 196 // BookmarkMenuControllerObserver: |
| 195 virtual void BookmarkMenuControllerDeleted( | 197 virtual void BookmarkMenuControllerDeleted( |
| 196 BookmarkMenuController* controller) OVERRIDE; | 198 BookmarkMenuController* controller) OVERRIDE; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 440 |
| 439 BookmarkBar::State bookmark_bar_state_; | 441 BookmarkBar::State bookmark_bar_state_; |
| 440 | 442 |
| 441 // Are we animating to or from the detached state? | 443 // Are we animating to or from the detached state? |
| 442 bool animating_detached_; | 444 bool animating_detached_; |
| 443 | 445 |
| 444 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 446 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 445 }; | 447 }; |
| 446 | 448 |
| 447 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 449 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |