OLD | NEW |
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 Loading... |
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 |
OLD | NEW |