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

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

Issue 275183002: patch from issue 218843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 7 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/message_center/views/message_center_view.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_view.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698