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 UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Positions and sizes the child views. This tiles the views vertically, | 55 // Positions and sizes the child views. This tiles the views vertically, |
56 // giving each child the available width. | 56 // giving each child the available width. |
57 virtual void Layout() OVERRIDE; | 57 virtual void Layout() OVERRIDE; |
58 virtual gfx::Size GetPreferredSize() OVERRIDE; | 58 virtual gfx::Size GetPreferredSize() OVERRIDE; |
59 | 59 |
60 // Override from View. | 60 // Override from View. |
61 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 61 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
62 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 62 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
63 | 63 |
64 // Painting. | 64 // Painting. |
65 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 65 virtual void PaintChildren(gfx::Canvas* canvas, |
| 66 const views::CullSet& cull_view) OVERRIDE; |
66 | 67 |
67 // Drag and drop methods. These are forwarded to the MenuController. | 68 // Drag and drop methods. These are forwarded to the MenuController. |
68 virtual bool GetDropFormats( | 69 virtual bool GetDropFormats( |
69 int* formats, | 70 int* formats, |
70 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 71 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
71 virtual bool AreDropTypesRequired() OVERRIDE; | 72 virtual bool AreDropTypesRequired() OVERRIDE; |
72 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; | 73 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; |
73 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 74 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
74 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 75 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
75 virtual void OnDragExited() OVERRIDE; | 76 virtual void OnDragExited() OVERRIDE; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 float roundoff_error_; | 219 float roundoff_error_; |
219 | 220 |
220 PrefixSelector prefix_selector_; | 221 PrefixSelector prefix_selector_; |
221 | 222 |
222 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 223 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
223 }; | 224 }; |
224 | 225 |
225 } // namespace views | 226 } // namespace views |
226 | 227 |
227 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 228 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
OLD | NEW |