| 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 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 bool CanDrop(const ui::OSExchangeData& data) override; | 173 bool CanDrop(const ui::OSExchangeData& data) override; |
| 174 void OnDragEntered(const ui::DropTargetEvent& event) override; | 174 void OnDragEntered(const ui::DropTargetEvent& event) override; |
| 175 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 175 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
| 176 void OnDragExited() override; | 176 void OnDragExited() override; |
| 177 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 177 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
| 178 void OnThemeChanged() override; | 178 void OnThemeChanged() override; |
| 179 const char* GetClassName() const override; | 179 const char* GetClassName() const override; |
| 180 void VisibilityChanged(View* starting_from, bool is_visible) override; | 180 void VisibilityChanged(View* starting_from, bool is_visible) override; |
| 181 | 181 |
| 182 // AccessiblePaneView: | 182 // AccessiblePaneView: |
| 183 void GetAccessibleState(ui::AXViewState* state) override; | 183 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 184 | 184 |
| 185 // gfx::AnimationDelegate: | 185 // gfx::AnimationDelegate: |
| 186 void AnimationProgressed(const gfx::Animation* animation) override; | 186 void AnimationProgressed(const gfx::Animation* animation) override; |
| 187 void AnimationEnded(const gfx::Animation* animation) override; | 187 void AnimationEnded(const gfx::Animation* animation) override; |
| 188 | 188 |
| 189 // BookmarkMenuControllerObserver: | 189 // BookmarkMenuControllerObserver: |
| 190 void BookmarkMenuControllerDeleted( | 190 void BookmarkMenuControllerDeleted( |
| 191 BookmarkMenuController* controller) override; | 191 BookmarkMenuController* controller) override; |
| 192 | 192 |
| 193 // BookmarkBarInstructionsDelegate: | 193 // BookmarkBarInstructionsDelegate: |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // created. This does not necessarily represent the number of bookmark bar | 277 // created. This does not necessarily represent the number of bookmark bar |
| 278 // nodes, nor the number of visible bookmark bar buttons. Buttons are created | 278 // nodes, nor the number of visible bookmark bar buttons. Buttons are created |
| 279 // lazily to fill available space, and may be hidden for ordering or sizing | 279 // lazily to fill available space, and may be hidden for ordering or sizing |
| 280 // changes. | 280 // changes. |
| 281 int GetBookmarkButtonCount() const; | 281 int GetBookmarkButtonCount() const; |
| 282 | 282 |
| 283 // Returns the button at the specified index. | 283 // Returns the button at the specified index. |
| 284 views::LabelButton* GetBookmarkButton(int index); | 284 views::LabelButton* GetBookmarkButton(int index); |
| 285 | 285 |
| 286 // Returns BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR or | 286 // Returns BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR or |
| 287 // BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR based on detached state. | 287 // BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR based on detached node_data. |
| 288 BookmarkLaunchLocation GetBookmarkLaunchLocation() const; | 288 BookmarkLaunchLocation GetBookmarkLaunchLocation() const; |
| 289 | 289 |
| 290 // Returns the index of the first hidden bookmark button. If all buttons are | 290 // Returns the index of the first hidden bookmark button. If all buttons are |
| 291 // visible, this returns GetBookmarkButtonCount(). | 291 // visible, this returns GetBookmarkButtonCount(). |
| 292 int GetFirstHiddenNodeIndex(); | 292 int GetFirstHiddenNodeIndex(); |
| 293 | 293 |
| 294 // Creates the button showing the "Other Bookmarks" folder. | 294 // Creates the button showing the "Other Bookmarks" folder. |
| 295 views::MenuButton* CreateOtherBookmarksButton(); | 295 views::MenuButton* CreateOtherBookmarksButton(); |
| 296 | 296 |
| 297 // Creates the button showing the "Managed Bookmarks" folder. | 297 // Creates the button showing the "Managed Bookmarks" folder. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 | 458 |
| 459 base::ObserverList<BookmarkBarViewObserver> observers_; | 459 base::ObserverList<BookmarkBarViewObserver> observers_; |
| 460 | 460 |
| 461 // Factory used to delay showing of the drop menu. | 461 // Factory used to delay showing of the drop menu. |
| 462 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; | 462 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; |
| 463 | 463 |
| 464 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 464 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 465 }; | 465 }; |
| 466 | 466 |
| 467 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 467 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |