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 #include "ui/aura/remote_window_tree_host_win.h" | 5 #include "ui/aura/remote_window_tree_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
14 #include "ui/aura/client/aura_constants.h" | 14 #include "ui/aura/client/aura_constants.h" |
15 #include "ui/aura/client/cursor_client.h" | 15 #include "ui/aura/client/cursor_client.h" |
16 #include "ui/aura/window_event_dispatcher.h" | 16 #include "ui/aura/window_event_dispatcher.h" |
17 #include "ui/aura/window_property.h" | 17 #include "ui/aura/window_property.h" |
18 #include "ui/base/cursor/cursor_loader_win.h" | 18 #include "ui/base/cursor/cursor_loader_win.h" |
19 #include "ui/base/ime/composition_text.h" | 19 #include "ui/base/ime/composition_text.h" |
20 #include "ui/base/ime/input_method.h" | 20 #include "ui/base/ime/input_method.h" |
21 #include "ui/base/ime/remote_input_method_win.h" | 21 #include "ui/base/ime/remote_input_method_win.h" |
22 #include "ui/base/ime/text_input_client.h" | 22 #include "ui/base/ime/text_input_client.h" |
23 #include "ui/base/view_prop.h" | 23 #include "ui/base/view_prop.h" |
24 #include "ui/events/event_utils.h" | 24 #include "ui/events/event_utils.h" |
25 #include "ui/events/keycodes/keyboard_code_conversion_win.h" | 25 #include "ui/events/keycodes/keyboard_code_conversion_win.h" |
26 #include "ui/gfx/insets.h" | 26 #include "ui/gfx/geometry/insets.h" |
27 #include "ui/gfx/win/dpi.h" | 27 #include "ui/gfx/win/dpi.h" |
28 #include "ui/metro_viewer/metro_viewer_messages.h" | 28 #include "ui/metro_viewer/metro_viewer_messages.h" |
29 | 29 |
30 namespace aura { | 30 namespace aura { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 const char* kWindowTreeHostWinKey = "__AURA_REMOTE_WINDOW_TREE_HOST_WIN__"; | 34 const char* kWindowTreeHostWinKey = "__AURA_REMOTE_WINDOW_TREE_HOST_WIN__"; |
35 | 35 |
36 // Sets the keystate for the virtual key passed in to down or up. | 36 // Sets the keystate for the virtual key passed in to down or up. |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 } | 509 } |
510 | 510 |
511 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { | 511 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { |
512 if (flags == event_flags_) | 512 if (flags == event_flags_) |
513 return; | 513 return; |
514 event_flags_ = flags; | 514 event_flags_ = flags; |
515 SetVirtualKeyStates(event_flags_); | 515 SetVirtualKeyStates(event_flags_); |
516 } | 516 } |
517 | 517 |
518 } // namespace aura | 518 } // namespace aura |
OLD | NEW |