Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: ui/views/controls/menu/menu_message_pump_dispatcher_win.cc

Issue 250943008: Move enum MenuAnchorPosition to reduce deps on menu_item_view.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/menu/menu_item_view.cc ('k') | ui/views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_item_view.cc ('k') | ui/views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698