| 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_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // ui::EventSource: | 240 // ui::EventSource: |
| 241 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 241 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
| 242 | 242 |
| 243 // ui::internal::RemoteInputMethodDelegateWin overrides: | 243 // ui::internal::RemoteInputMethodDelegateWin overrides: |
| 244 virtual void CancelComposition() OVERRIDE; | 244 virtual void CancelComposition() OVERRIDE; |
| 245 virtual void OnTextInputClientUpdated( | 245 virtual void OnTextInputClientUpdated( |
| 246 const std::vector<int32>& input_scopes, | 246 const std::vector<int32>& input_scopes, |
| 247 const std::vector<gfx::Rect>& composition_character_bounds) OVERRIDE; | 247 const std::vector<gfx::Rect>& composition_character_bounds) OVERRIDE; |
| 248 | 248 |
| 249 // Helper function to dispatch a keyboard message to the desired target. | 249 // Helper function to dispatch a keyboard message to the desired target. |
| 250 // The default target is the WindowEventDispatcher. For nested message loop | 250 // The default target is the WindowTreeHostDelegate. For nested message loop |
| 251 // invocations we post a synthetic keyboard message directly into the message | 251 // invocations we post a synthetic keyboard message directly into the message |
| 252 // loop. The dispatcher for the nested loop would then decide how this | 252 // loop. The dispatcher for the nested loop would then decide how this |
| 253 // message is routed. | 253 // message is routed. |
| 254 void DispatchKeyboardMessage(ui::EventType type, | 254 void DispatchKeyboardMessage(ui::EventType type, |
| 255 uint32 vkey, | 255 uint32 vkey, |
| 256 uint32 repeat_count, | 256 uint32 repeat_count, |
| 257 uint32 scan_code, | 257 uint32 scan_code, |
| 258 uint32 flags, | 258 uint32 flags, |
| 259 bool is_character); | 259 bool is_character); |
| 260 | 260 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 299 |
| 300 // Current size of this root window. | 300 // Current size of this root window. |
| 301 gfx::Size window_size_; | 301 gfx::Size window_size_; |
| 302 | 302 |
| 303 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); | 303 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 } // namespace aura | 306 } // namespace aura |
| 307 | 307 |
| 308 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 308 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |