OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual gfx::Size GetPreferredSize(); | 54 virtual gfx::Size GetPreferredSize(); |
55 | 55 |
56 // View method. Overridden to schedule a paint. We do this so that when | 56 // View method. Overridden to schedule a paint. We do this so that when |
57 // scrolling occurs, everything is repainted correctly. | 57 // scrolling occurs, everything is repainted correctly. |
58 virtual void OnBoundsChanged(); | 58 virtual void OnBoundsChanged(); |
59 | 59 |
60 // Override from View. | 60 // Override from View. |
61 virtual AccessibilityTypes::Role GetAccessibleRole(); | 61 virtual AccessibilityTypes::Role GetAccessibleRole(); |
62 | 62 |
63 // Painting. | 63 // Painting. |
64 void PaintChildren(gfx::Canvas* canvas); | 64 virtual void PaintChildren(gfx::Canvas* canvas); |
65 | 65 |
66 // Drag and drop methods. These are forwarded to the MenuController. | 66 // Drag and drop methods. These are forwarded to the MenuController. |
67 virtual bool GetDropFormats( | 67 virtual bool GetDropFormats( |
68 int* formats, | 68 int* formats, |
69 std::set<OSExchangeData::CustomFormat>* custom_formats); | 69 std::set<OSExchangeData::CustomFormat>* custom_formats); |
70 virtual bool AreDropTypesRequired(); | 70 virtual bool AreDropTypesRequired(); |
71 virtual bool CanDrop(const OSExchangeData& data); | 71 virtual bool CanDrop(const OSExchangeData& data); |
72 virtual void OnDragEntered(const DropTargetEvent& event); | 72 virtual void OnDragEntered(const DropTargetEvent& event); |
73 virtual int OnDragUpdated(const DropTargetEvent& event); | 73 virtual int OnDragUpdated(const DropTargetEvent& event); |
74 virtual void OnDragExited(); | 74 virtual void OnDragExited(); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 // See description above getter. | 177 // See description above getter. |
178 int max_accelerator_width_; | 178 int max_accelerator_width_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 180 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace views | 183 } // namespace views |
184 | 184 |
185 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 185 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
OLD | NEW |