| 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 VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| 6 #define VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 6 #define VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| 7 | 7 |
| 8 #include "views/controls/menu/menu_delegate.h" | 8 #include "views/controls/menu/menu_delegate.h" |
| 9 #include "views/view.h" | 9 #include "views/view.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // View method. Overriden to schedule a paint. We do this so that when | 50 // View method. Overriden to schedule a paint. We do this so that when |
| 51 // scrolling occurs, everything is repainted correctly. | 51 // scrolling occurs, everything is repainted correctly. |
| 52 virtual void DidChangeBounds(const gfx::Rect& previous, | 52 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 53 const gfx::Rect& current); | 53 const gfx::Rect& current); |
| 54 | 54 |
| 55 // Painting. | 55 // Painting. |
| 56 void PaintChildren(gfx::Canvas* canvas); | 56 void PaintChildren(gfx::Canvas* canvas); |
| 57 | 57 |
| 58 // Drag and drop methods. These are forwarded to the MenuController. | 58 // Drag and drop methods. These are forwarded to the MenuController. |
| 59 virtual bool GetDropFormats( |
| 60 int* formats, |
| 61 std::set<OSExchangeData::CustomFormat>* custom_formats); |
| 62 virtual bool AreDropTypesRequired(); |
| 59 virtual bool CanDrop(const OSExchangeData& data); | 63 virtual bool CanDrop(const OSExchangeData& data); |
| 60 virtual void OnDragEntered(const DropTargetEvent& event); | 64 virtual void OnDragEntered(const DropTargetEvent& event); |
| 61 virtual int OnDragUpdated(const DropTargetEvent& event); | 65 virtual int OnDragUpdated(const DropTargetEvent& event); |
| 62 virtual void OnDragExited(); | 66 virtual void OnDragExited(); |
| 63 virtual int OnPerformDrop(const DropTargetEvent& event); | 67 virtual int OnPerformDrop(const DropTargetEvent& event); |
| 64 | 68 |
| 65 // Scrolls on menu item boundaries. | 69 // Scrolls on menu item boundaries. |
| 66 virtual bool OnMouseWheel(const MouseWheelEvent& e); | 70 virtual bool OnMouseWheel(const MouseWheelEvent& e); |
| 67 | 71 |
| 68 // Returns true if the menu is showing. | 72 // Returns true if the menu is showing. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 147 |
| 144 // Ancestor of the SubmenuView, lazily created. | 148 // Ancestor of the SubmenuView, lazily created. |
| 145 MenuScrollViewContainer* scroll_view_container_; | 149 MenuScrollViewContainer* scroll_view_container_; |
| 146 | 150 |
| 147 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 151 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
| 148 }; | 152 }; |
| 149 | 153 |
| 150 } // namespace views | 154 } // namespace views |
| 151 | 155 |
| 152 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 156 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| OLD | NEW |