OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_model_observer.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 virtual void PaintChildren(gfx::Canvas* canvas); | 105 virtual void PaintChildren(gfx::Canvas* canvas); |
106 virtual bool GetDropFormats( | 106 virtual bool GetDropFormats( |
107 int* formats, | 107 int* formats, |
108 std::set<OSExchangeData::CustomFormat>* custom_formats); | 108 std::set<OSExchangeData::CustomFormat>* custom_formats); |
109 virtual bool AreDropTypesRequired(); | 109 virtual bool AreDropTypesRequired(); |
110 virtual bool CanDrop(const OSExchangeData& data); | 110 virtual bool CanDrop(const OSExchangeData& data); |
111 virtual void OnDragEntered(const views::DropTargetEvent& event); | 111 virtual void OnDragEntered(const views::DropTargetEvent& event); |
112 virtual int OnDragUpdated(const views::DropTargetEvent& event); | 112 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
113 virtual void OnDragExited(); | 113 virtual void OnDragExited(); |
114 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 114 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 115 virtual void ShowContextMenu(int x, int y, bool is_mouse_gesture); |
115 | 116 |
116 // AccessibleToolbarView methods: | 117 // AccessibleToolbarView methods: |
117 virtual bool IsAccessibleViewTraversable(views::View* view); | 118 virtual bool IsAccessibleViewTraversable(views::View* view); |
118 | 119 |
119 // ProfileSyncServiceObserver method. | 120 // ProfileSyncServiceObserver method. |
120 virtual void OnStateChanged(); | 121 virtual void OnStateChanged(); |
121 | 122 |
122 // Called when fullscreen mode toggles on or off; this affects our layout. | 123 // Called when fullscreen mode toggles on or off; this affects our layout. |
123 void OnFullscreenToggled(bool fullscreen); | 124 void OnFullscreenToggled(bool fullscreen); |
124 | 125 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // overflow_button_ or a button on the bar. | 488 // overflow_button_ or a button on the bar. |
488 views::CustomButton* throbbing_view_; | 489 views::CustomButton* throbbing_view_; |
489 | 490 |
490 // Background for extension toolstrips. | 491 // Background for extension toolstrips. |
491 SkBitmap toolstrip_background_; | 492 SkBitmap toolstrip_background_; |
492 | 493 |
493 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 494 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
494 }; | 495 }; |
495 | 496 |
496 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 497 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |