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

Side by Side Diff: ui/aura/window_tree_host.h

Issue 1236923003: Makes DesktopWindowTreeHostXxx to dispatch key event to InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO. Created 5 years, 5 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
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ui/aura/window_tree_host.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 (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_WINDOW_TREE_HOST_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_
6 #define UI_AURA_WINDOW_TREE_HOST_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 virtual void OnCursorVisibilityChangedNative(bool show) = 0; 197 virtual void OnCursorVisibilityChangedNative(bool show) = 0;
198 198
199 // Shows the WindowTreeHost. 199 // Shows the WindowTreeHost.
200 virtual void ShowImpl() = 0; 200 virtual void ShowImpl() = 0;
201 201
202 // Hides the WindowTreeHost. 202 // Hides the WindowTreeHost.
203 virtual void HideImpl() = 0; 203 virtual void HideImpl() = 0;
204 204
205 // Overridden from ui::EventSource: 205 // Overridden from ui::EventSource:
206 ui::EventProcessor* GetEventProcessor() override; 206 ui::EventProcessor* GetEventProcessor() override;
207 ui::EventDispatchDetails DeliverEventToProcessor(ui::Event* event) override;
208 207
209 private: 208 private:
210 friend class test::WindowTreeHostTestApi; 209 friend class test::WindowTreeHostTestApi;
211 210
212 // Moves the cursor to the specified location. This method is internally used 211 // Moves the cursor to the specified location. This method is internally used
213 // by MoveCursorTo() and MoveCursorToHostLocation(). 212 // by MoveCursorTo() and MoveCursorToHostLocation().
214 void MoveCursorToInternal(const gfx::Point& root_location, 213 void MoveCursorToInternal(const gfx::Point& root_location,
215 const gfx::Point& host_location); 214 const gfx::Point& host_location);
216 215
217 // We don't use a scoped_ptr for |window_| since we need this ptr to be valid 216 // We don't use a scoped_ptr for |window_| since we need this ptr to be valid
(...skipping 21 matching lines...) Expand all
239 238
240 // Whether the InputMethod instance is owned by this WindowTreeHost. 239 // Whether the InputMethod instance is owned by this WindowTreeHost.
241 bool owned_input_method_; 240 bool owned_input_method_;
242 241
243 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 242 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
244 }; 243 };
245 244
246 } // namespace aura 245 } // namespace aura
247 246
248 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 247 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698