| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 173 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; |
| 174 virtual bool GetDropFormats( | 174 virtual bool GetDropFormats( |
| 175 int* formats, | 175 int* formats, |
| 176 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 176 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
| 177 virtual bool AreDropTypesRequired() OVERRIDE; | 177 virtual bool AreDropTypesRequired() OVERRIDE; |
| 178 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; | 178 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; |
| 179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
| 180 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 180 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
| 181 virtual void OnDragExited() OVERRIDE; | 181 virtual void OnDragExited() OVERRIDE; |
| 182 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 182 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 183 virtual void ShowContextMenu(const gfx::Point& p, | |
| 184 bool is_mouse_gesture) OVERRIDE; | |
| 185 virtual void OnThemeChanged() OVERRIDE; | 183 virtual void OnThemeChanged() OVERRIDE; |
| 186 virtual const char* GetClassName() const OVERRIDE; | 184 virtual const char* GetClassName() const OVERRIDE; |
| 187 | 185 |
| 188 // AccessiblePaneView: | 186 // AccessiblePaneView: |
| 189 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 187 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 190 | 188 |
| 191 // ui::AnimationDelegate: | 189 // ui::AnimationDelegate: |
| 192 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 190 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 193 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 191 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 194 | 192 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // views::MenuButtonListener: | 237 // views::MenuButtonListener: |
| 240 virtual void OnMenuButtonClicked(views::View* view, | 238 virtual void OnMenuButtonClicked(views::View* view, |
| 241 const gfx::Point& point) OVERRIDE; | 239 const gfx::Point& point) OVERRIDE; |
| 242 | 240 |
| 243 // views::ButtonListener: | 241 // views::ButtonListener: |
| 244 virtual void ButtonPressed(views::Button* sender, | 242 virtual void ButtonPressed(views::Button* sender, |
| 245 const ui::Event& event) OVERRIDE; | 243 const ui::Event& event) OVERRIDE; |
| 246 | 244 |
| 247 // views::ContextMenuController: | 245 // views::ContextMenuController: |
| 248 virtual void ShowContextMenuForView(views::View* source, | 246 virtual void ShowContextMenuForView(views::View* source, |
| 249 const gfx::Point& point) OVERRIDE; | 247 const gfx::Point& point, |
| 248 ui::MenuSourceType source_type) OVERRIDE; |
| 250 | 249 |
| 251 private: | 250 private: |
| 252 class ButtonSeparatorView; | 251 class ButtonSeparatorView; |
| 253 struct DropInfo; | 252 struct DropInfo; |
| 254 struct DropLocation; | 253 struct DropLocation; |
| 255 | 254 |
| 256 friend class BookmarkBarViewEventTestBase; | 255 friend class BookmarkBarViewEventTestBase; |
| 257 FRIEND_TEST_ALL_PREFIXES(BookmarkBarViewTest, SwitchProfile); | 256 FRIEND_TEST_ALL_PREFIXES(BookmarkBarViewTest, SwitchProfile); |
| 258 FRIEND_TEST_ALL_PREFIXES(BookmarkBarViewTest, | 257 FRIEND_TEST_ALL_PREFIXES(BookmarkBarViewTest, |
| 259 NoAppsShortcutWithoutInstantExtended); | 258 NoAppsShortcutWithoutInstantExtended); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 432 |
| 434 BookmarkBar::State bookmark_bar_state_; | 433 BookmarkBar::State bookmark_bar_state_; |
| 435 | 434 |
| 436 // Are we animating to or from the detached state? | 435 // Are we animating to or from the detached state? |
| 437 bool animating_detached_; | 436 bool animating_detached_; |
| 438 | 437 |
| 439 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 438 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 440 }; | 439 }; |
| 441 | 440 |
| 442 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 441 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |