| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/views/controls/menu/menu_message_pump_dispatcher_win.h" | 5 #include "ui/views/controls/menu/menu_message_pump_dispatcher_win.h" |
| 6 | 6 |
| 7 #include <windowsx.h> | 7 #include <windowsx.h> |
| 8 | 8 |
| 9 #include "ui/events/event_utils.h" | 9 #include "ui/events/event_utils.h" |
| 10 #include "ui/events/keycodes/keyboard_code_conversion.h" | 10 #include "ui/events/keycodes/keyboard_code_conversion.h" |
| 11 #include "ui/events/keycodes/keyboard_codes.h" | 11 #include "ui/events/keycodes/keyboard_codes.h" |
| 12 #include "ui/views/controls/menu/menu_controller.h" | 12 #include "ui/views/controls/menu/menu_controller.h" |
| 13 #include "ui/views/controls/menu/menu_item_view.h" |
| 13 | 14 |
| 14 namespace views { | 15 namespace views { |
| 15 namespace internal { | 16 namespace internal { |
| 16 | 17 |
| 17 MenuMessagePumpDispatcher::MenuMessagePumpDispatcher(MenuController* controller) | 18 MenuMessagePumpDispatcher::MenuMessagePumpDispatcher(MenuController* controller) |
| 18 : menu_controller_(controller) {} | 19 : menu_controller_(controller) {} |
| 19 | 20 |
| 20 MenuMessagePumpDispatcher::~MenuMessagePumpDispatcher() {} | 21 MenuMessagePumpDispatcher::~MenuMessagePumpDispatcher() {} |
| 21 | 22 |
| 22 uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { | 23 uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 break; | 75 break; |
| 75 } | 76 } |
| 76 return POST_DISPATCH_PERFORM_DEFAULT | | 77 return POST_DISPATCH_PERFORM_DEFAULT | |
| 77 (menu_controller_->exit_type() == MenuController::EXIT_NONE | 78 (menu_controller_->exit_type() == MenuController::EXIT_NONE |
| 78 ? POST_DISPATCH_NONE | 79 ? POST_DISPATCH_NONE |
| 79 : POST_DISPATCH_QUIT_LOOP); | 80 : POST_DISPATCH_QUIT_LOOP); |
| 80 } | 81 } |
| 81 | 82 |
| 82 } // namespace internal | 83 } // namespace internal |
| 83 } // namespace views | 84 } // namespace views |
| OLD | NEW |