| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 ~WindowTreeHostMus() override; | 55 ~WindowTreeHostMus() override; |
| 56 | 56 |
| 57 // Returns the WindowTreeHostMus for |window|. This returns null if |window| | 57 // Returns the WindowTreeHostMus for |window|. This returns null if |window| |
| 58 // is null, or not in a WindowTreeHostMus. | 58 // is null, or not in a WindowTreeHostMus. |
| 59 static WindowTreeHostMus* ForWindow(aura::Window* window); | 59 static WindowTreeHostMus* ForWindow(aura::Window* window); |
| 60 | 60 |
| 61 // Sets the bounds in pixels. | 61 // Sets the bounds in pixels. |
| 62 void SetBoundsFromServer(const gfx::Rect& bounds_in_pixels); | 62 void SetBoundsFromServer(const gfx::Rect& bounds_in_pixels); |
| 63 | 63 |
| 64 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { | 64 ui::EventDispatchDetails SendEventToSink(ui::Event* event) { |
| 65 return aura::WindowTreeHostPlatform::SendEventToProcessor(event); | 65 return aura::WindowTreeHostPlatform::SendEventToSink(event); |
| 66 } | 66 } |
| 67 | 67 |
| 68 InputMethodMus* input_method() { return input_method_.get(); } | 68 InputMethodMus* input_method() { return input_method_.get(); } |
| 69 | 69 |
| 70 // Sets the client area on the underlying mus window. | 70 // Sets the client area on the underlying mus window. |
| 71 void SetClientArea(const gfx::Insets& insets, | 71 void SetClientArea(const gfx::Insets& insets, |
| 72 const std::vector<gfx::Rect>& additional_client_area); | 72 const std::vector<gfx::Rect>& additional_client_area); |
| 73 | 73 |
| 74 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to | 74 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to |
| 75 // clear. | 75 // clear. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool in_set_bounds_from_server_ = false; | 123 bool in_set_bounds_from_server_ = false; |
| 124 | 124 |
| 125 std::unique_ptr<InputMethodMus> input_method_; | 125 std::unique_ptr<InputMethodMus> input_method_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 127 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace aura | 130 } // namespace aura |
| 131 | 131 |
| 132 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 132 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |