OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "gfx/canvas.h" | 7 #include "ui/gfx/canvas.h" |
8 #include "views/controls/menu/menu_config.h" | 8 #include "views/controls/menu/menu_config.h" |
9 #include "views/controls/menu/menu_controller.h" | 9 #include "views/controls/menu/menu_controller.h" |
10 #include "views/controls/menu/menu_host.h" | 10 #include "views/controls/menu/menu_host.h" |
11 #include "views/controls/menu/menu_scroll_view_container.h" | 11 #include "views/controls/menu/menu_scroll_view_container.h" |
12 #include "views/widget/root_view.h" | 12 #include "views/widget/root_view.h" |
13 | 13 |
14 // Height of the drop indicator. This should be an even number. | 14 // Height of the drop indicator. This should be an even number. |
15 static const int kDropIndicatorHeight = 2; | 15 static const int kDropIndicatorHeight = 2; |
16 | 16 |
17 // Color of the drop indicator. | 17 // Color of the drop indicator. |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 item_bounds.set_height(kDropIndicatorHeight); | 373 item_bounds.set_height(kDropIndicatorHeight); |
374 return item_bounds; | 374 return item_bounds; |
375 | 375 |
376 default: | 376 default: |
377 // Don't render anything for on. | 377 // Don't render anything for on. |
378 return gfx::Rect(); | 378 return gfx::Rect(); |
379 } | 379 } |
380 } | 380 } |
381 | 381 |
382 } // namespace views | 382 } // namespace views |
OLD | NEW |