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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Positions and sizes the child views. This tiles the views vertically, | 63 // Positions and sizes the child views. This tiles the views vertically, |
64 // giving each child the available width. | 64 // giving each child the available width. |
65 void Layout() override; | 65 void Layout() override; |
66 gfx::Size CalculatePreferredSize() const override; | 66 gfx::Size CalculatePreferredSize() const override; |
67 | 67 |
68 // Override from View. | 68 // Override from View. |
69 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 69 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
70 | 70 |
71 // Painting. | 71 // Painting. |
72 void PaintChildren(const ui::PaintContext& context) override; | 72 void PaintChildren(const ui::PaintInfo& paint_info) override; |
73 | 73 |
74 // Drag and drop methods. These are forwarded to the MenuController. | 74 // Drag and drop methods. These are forwarded to the MenuController. |
75 bool GetDropFormats( | 75 bool GetDropFormats( |
76 int* formats, | 76 int* formats, |
77 std::set<ui::Clipboard::FormatType>* format_types) override; | 77 std::set<ui::Clipboard::FormatType>* format_types) override; |
78 bool AreDropTypesRequired() override; | 78 bool AreDropTypesRequired() override; |
79 bool CanDrop(const OSExchangeData& data) override; | 79 bool CanDrop(const OSExchangeData& data) override; |
80 void OnDragEntered(const ui::DropTargetEvent& event) override; | 80 void OnDragEntered(const ui::DropTargetEvent& event) override; |
81 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 81 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
82 void OnDragExited() override; | 82 void OnDragExited() override; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 float roundoff_error_; | 221 float roundoff_error_; |
222 | 222 |
223 PrefixSelector prefix_selector_; | 223 PrefixSelector prefix_selector_; |
224 | 224 |
225 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 225 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
226 }; | 226 }; |
227 | 227 |
228 } // namespace views | 228 } // namespace views |
229 | 229 |
230 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 230 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
OLD | NEW |