Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: ui/views/controls/menu/submenu_view.h

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698