| 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 "chrome/browser/chromeos/views/menu_locator.h" | 5 #include "chrome/browser/chromeos/views/menu_locator.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/chromeos/views/domui_menu_widget.h" | 9 #include "chrome/browser/chromeos/views/domui_menu_widget.h" |
| 10 #include "gfx/point.h" | 10 #include "ui/gfx/insets.h" |
| 11 #include "gfx/rect.h" | 11 #include "ui/gfx/point.h" |
| 12 #include "gfx/insets.h" | 12 #include "ui/gfx/rect.h" |
| 13 #include "views/screen.h" | 13 #include "views/screen.h" |
| 14 #include "views/widget/widget.h" | 14 #include "views/widget/widget.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 using chromeos::DOMUIMenuWidget; | 18 using chromeos::DOMUIMenuWidget; |
| 19 | 19 |
| 20 // Menu's corner radious. | 20 // Menu's corner radious. |
| 21 const int kMenuCornerRadius = 0; // crosbug.com/7718. | 21 const int kMenuCornerRadius = 0; // crosbug.com/7718. |
| 22 const int kSubmenuOverlapPx = 1; | 22 const int kSubmenuOverlapPx = 1; |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 } | 309 } |
| 310 | 310 |
| 311 MenuLocator* MenuLocator::CreateSubMenuLocator( | 311 MenuLocator* MenuLocator::CreateSubMenuLocator( |
| 312 const DOMUIMenuWidget* parent, | 312 const DOMUIMenuWidget* parent, |
| 313 MenuLocator::SubmenuDirection parent_direction, | 313 MenuLocator::SubmenuDirection parent_direction, |
| 314 int y) { | 314 int y) { |
| 315 return new SubMenuLocator(parent, parent_direction, y); | 315 return new SubMenuLocator(parent, parent_direction, y); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace chromeos | 318 } // namespace chromeos |
| OLD | NEW |