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

Side by Side Diff: ui/aura/mus/window_tree_host_mus.h

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Rebase and 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 ~WindowTreeHostMus() override; 53 ~WindowTreeHostMus() override;
54 54
55 // Returns the WindowTreeHostMus for |window|. This returns null if |window| 55 // Returns the WindowTreeHostMus for |window|. This returns null if |window|
56 // is null, or not in a WindowTreeHostMus. 56 // is null, or not in a WindowTreeHostMus.
57 static WindowTreeHostMus* ForWindow(aura::Window* window); 57 static WindowTreeHostMus* ForWindow(aura::Window* window);
58 58
59 // Sets the bounds in pixels. 59 // Sets the bounds in pixels.
60 void SetBoundsFromServer(const gfx::Rect& bounds_in_pixels); 60 void SetBoundsFromServer(const gfx::Rect& bounds_in_pixels);
61 61
62 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { 62 ui::EventDispatchDetails SendEventToSink(ui::Event* event) {
63 return aura::WindowTreeHostPlatform::SendEventToProcessor(event); 63 return aura::WindowTreeHostPlatform::SendEventToSink(event);
64 } 64 }
65 65
66 InputMethodMus* input_method() { return input_method_.get(); } 66 InputMethodMus* input_method() { return input_method_.get(); }
67 67
68 // Sets the client area on the underlying mus window. 68 // Sets the client area on the underlying mus window.
69 void SetClientArea(const gfx::Insets& insets, 69 void SetClientArea(const gfx::Insets& insets,
70 const std::vector<gfx::Rect>& additional_client_area); 70 const std::vector<gfx::Rect>& additional_client_area);
71 71
72 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to 72 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to
73 // clear. 73 // clear.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool in_set_bounds_from_server_ = false; 121 bool in_set_bounds_from_server_ = false;
122 122
123 std::unique_ptr<InputMethodMus> input_method_; 123 std::unique_ptr<InputMethodMus> input_method_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 125 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
126 }; 126 };
127 127
128 } // namespace aura 128 } // namespace aura
129 129
130 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 130 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698