| OLD | NEW |
| 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 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // to show/hide submenus and update state_. | 301 // to show/hide submenus and update state_. |
| 302 void SetSelection(MenuItemView* menu_item, int types); | 302 void SetSelection(MenuItemView* menu_item, int types); |
| 303 | 303 |
| 304 void SetSelectionOnPointerDown(SubmenuView* source, | 304 void SetSelectionOnPointerDown(SubmenuView* source, |
| 305 const ui::LocatedEvent* event); | 305 const ui::LocatedEvent* event); |
| 306 void StartDrag(SubmenuView* source, const gfx::Point& location); | 306 void StartDrag(SubmenuView* source, const gfx::Point& location); |
| 307 | 307 |
| 308 // Key processing. | 308 // Key processing. |
| 309 void OnKeyDown(ui::KeyboardCode key_code); | 309 void OnKeyDown(ui::KeyboardCode key_code); |
| 310 | 310 |
| 311 // Creates a MenuController. If |blocking| is true a nested message loop is | 311 // Creates a MenuController. If |blocking| is true a nested run loop is |
| 312 // started in |Run|. | 312 // started in |Run|. |
| 313 MenuController(bool blocking, | 313 MenuController(bool blocking, |
| 314 internal::MenuControllerDelegate* delegate); | 314 internal::MenuControllerDelegate* delegate); |
| 315 | 315 |
| 316 ~MenuController() override; | 316 ~MenuController() override; |
| 317 | 317 |
| 318 // Runs the platform specific bits of the message loop. | 318 // Runs the platform specific bits of the message loop. |
| 319 void RunMessageLoop(); | 319 void RunMessageLoop(); |
| 320 | 320 |
| 321 // Invokes AcceleratorPressed() on the hot tracked view if there is one. | 321 // Invokes AcceleratorPressed() on the hot tracked view if there is one. |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 #if defined(USE_AURA) | 682 #if defined(USE_AURA) |
| 683 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_; | 683 std::unique_ptr<MenuPreTargetHandler> menu_pre_target_handler_; |
| 684 #endif | 684 #endif |
| 685 | 685 |
| 686 DISALLOW_COPY_AND_ASSIGN(MenuController); | 686 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 687 }; | 687 }; |
| 688 | 688 |
| 689 } // namespace views | 689 } // namespace views |
| 690 | 690 |
| 691 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 691 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |