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

Side by Side Diff: ui/views/controls/menu/menu_delegate.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.h » ('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 #include "ui/views/controls/menu/menu_delegate.h" 5 #include "ui/views/controls/menu/menu_delegate.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/views/controls/menu/menu_config.h" 8 #include "ui/views/controls/menu/menu_config.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 27 matching lines...) Expand all
38 bool is_hovered, 38 bool is_hovered,
39 SkColor* override_color) const { 39 SkColor* override_color) const {
40 return false; 40 return false;
41 } 41 }
42 42
43 base::string16 MenuDelegate::GetTooltipText(int id, 43 base::string16 MenuDelegate::GetTooltipText(int id,
44 const gfx::Point& screen_loc) const { 44 const gfx::Point& screen_loc) const {
45 return base::string16(); 45 return base::string16();
46 } 46 }
47 47
48 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { 48 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) const {
49 return false; 49 return false;
50 } 50 }
51 51
52 bool MenuDelegate::ShowContextMenu(MenuItemView* source, 52 bool MenuDelegate::ShowContextMenu(MenuItemView* source,
53 int id, 53 int id,
54 const gfx::Point& p, 54 const gfx::Point& p,
55 ui::MenuSourceType source_type) { 55 ui::MenuSourceType source_type) {
56 return false; 56 return false;
57 } 57 }
58 58
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 int* right_margin) const { 157 int* right_margin) const {
158 *left_margin = 0; 158 *left_margin = 0;
159 *right_margin = 0; 159 *right_margin = 0;
160 } 160 }
161 161
162 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { 162 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const {
163 return true; 163 return true;
164 } 164 }
165 165
166 } // namespace views 166 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698