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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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 | « ui/aura/window_targeter.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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 class ICCProfile; 23 class ICCProfile;
24 class Insets; 24 class Insets;
25 class Point; 25 class Point;
26 class Rect; 26 class Rect;
27 class Size; 27 class Size;
28 class Transform; 28 class Transform;
29 } 29 }
30 30
31 namespace ui { 31 namespace ui {
32 class Compositor; 32 class Compositor;
33 class EventProcessor; 33 class EventSink;
34 class InputMethod; 34 class InputMethod;
35 class ViewProp; 35 class ViewProp;
36 } 36 }
37 37
38 namespace aura { 38 namespace aura {
39 namespace test { 39 namespace test {
40 class WindowTreeHostTestApi; 40 class WindowTreeHostTestApi;
41 } 41 }
42 42
43 class WindowEventDispatcher; 43 class WindowEventDispatcher;
(...skipping 16 matching lines...) Expand all
60 static WindowTreeHost* GetForAcceleratedWidget(gfx::AcceleratedWidget widget); 60 static WindowTreeHost* GetForAcceleratedWidget(gfx::AcceleratedWidget widget);
61 61
62 void InitHost(); 62 void InitHost();
63 63
64 void AddObserver(WindowTreeHostObserver* observer); 64 void AddObserver(WindowTreeHostObserver* observer);
65 void RemoveObserver(WindowTreeHostObserver* observer); 65 void RemoveObserver(WindowTreeHostObserver* observer);
66 66
67 Window* window() { return window_; } 67 Window* window() { return window_; }
68 const Window* window() const { return window_; } 68 const Window* window() const { return window_; }
69 69
70 ui::EventProcessor* event_processor(); 70 ui::EventSink* event_sink();
71 71
72 WindowEventDispatcher* dispatcher() { 72 WindowEventDispatcher* dispatcher() {
73 return const_cast<WindowEventDispatcher*>( 73 return const_cast<WindowEventDispatcher*>(
74 const_cast<const WindowTreeHost*>(this)->dispatcher()); 74 const_cast<const WindowTreeHost*>(this)->dispatcher());
75 } 75 }
76 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); } 76 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); }
77 77
78 ui::Compositor* compositor() { return compositor_.get(); } 78 ui::Compositor* compositor() { return compositor_.get(); }
79 79
80 // Gets/Sets the root window's transform. 80 // Gets/Sets the root window's transform.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // Shows the WindowTreeHost. 222 // Shows the WindowTreeHost.
223 virtual void ShowImpl() = 0; 223 virtual void ShowImpl() = 0;
224 224
225 // Hides the WindowTreeHost. 225 // Hides the WindowTreeHost.
226 virtual void HideImpl() = 0; 226 virtual void HideImpl() = 0;
227 227
228 virtual gfx::ICCProfile GetICCProfileForCurrentDisplay(); 228 virtual gfx::ICCProfile GetICCProfileForCurrentDisplay();
229 229
230 // Overridden from ui::EventSource: 230 // Overridden from ui::EventSource:
231 ui::EventProcessor* GetEventProcessor() override; 231 ui::EventSink* GetEventSink() override;
232 232
233 private: 233 private:
234 friend class test::WindowTreeHostTestApi; 234 friend class test::WindowTreeHostTestApi;
235 235
236 // Moves the cursor to the specified location. This method is internally used 236 // Moves the cursor to the specified location. This method is internally used
237 // by MoveCursorToLocationInDIP() and MoveCursorToLocationInPixels(). 237 // by MoveCursorToLocationInDIP() and MoveCursorToLocationInPixels().
238 void MoveCursorToInternal(const gfx::Point& root_location, 238 void MoveCursorToInternal(const gfx::Point& root_location,
239 const gfx::Point& host_location); 239 const gfx::Point& host_location);
240 240
241 // We don't use a std::unique_ptr for |window_| since we need this ptr to be 241 // We don't use a std::unique_ptr for |window_| since we need this ptr to be
(...skipping 23 matching lines...) Expand all
265 bool owned_input_method_; 265 bool owned_input_method_;
266 266
267 gfx::Insets output_surface_padding_in_pixels_; 267 gfx::Insets output_surface_padding_in_pixels_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 269 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
270 }; 270 };
271 271
272 } // namespace aura 272 } // namespace aura
273 273
274 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 274 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/window_targeter.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698