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

Side by Side Diff: views/controls/menu/submenu_view.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 | « views/controls/menu/native_menu_gtk.cc ('k') | views/controls/message_box_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/controls/menu/submenu_view.h" 5 #include "views/controls/menu/submenu_view.h"
6 6
7 #include "ui/base/accessibility/accessible_view_state.h" 7 #include "ui/base/accessibility/accessible_view_state.h"
8 #include "ui/gfx/canvas.h" 8 #include "ui/gfx/canvas.h"
9 #include "ui/views/widget/root_view.h"
10 #include "ui/views/widget/widget.h"
9 #include "views/controls/menu/menu_config.h" 11 #include "views/controls/menu/menu_config.h"
10 #include "views/controls/menu/menu_controller.h" 12 #include "views/controls/menu/menu_controller.h"
11 #include "views/controls/menu/menu_host.h" 13 #include "views/controls/menu/menu_host.h"
12 #include "views/controls/menu/menu_scroll_view_container.h" 14 #include "views/controls/menu/menu_scroll_view_container.h"
13 #include "views/widget/root_view.h"
14 #include "views/widget/widget.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Height of the drop indicator. This should be an even number. 18 // Height of the drop indicator. This should be an even number.
19 const int kDropIndicatorHeight = 2; 19 const int kDropIndicatorHeight = 2;
20 20
21 // Color of the drop indicator. 21 // Color of the drop indicator.
22 const SkColor kDropIndicatorColor = SK_ColorBLACK; 22 const SkColor kDropIndicatorColor = SK_ColorBLACK;
23 23
24 } // namespace 24 } // namespace
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 item_bounds.set_height(kDropIndicatorHeight); 389 item_bounds.set_height(kDropIndicatorHeight);
390 return item_bounds; 390 return item_bounds;
391 391
392 default: 392 default:
393 // Don't render anything for on. 393 // Don't render anything for on.
394 return gfx::Rect(); 394 return gfx::Rect();
395 } 395 }
396 } 396 }
397 397
398 } // namespace views 398 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/native_menu_gtk.cc ('k') | views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698