| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Sets the bounds in dips. | 44 // Sets the bounds in dips. |
| 45 void SetBoundsFromServer(const gfx::Rect& bounds); | 45 void SetBoundsFromServer(const gfx::Rect& bounds); |
| 46 | 46 |
| 47 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { | 47 ui::EventDispatchDetails SendEventToProcessor(ui::Event* event) { |
| 48 return aura::WindowTreeHostPlatform::SendEventToProcessor(event); | 48 return aura::WindowTreeHostPlatform::SendEventToProcessor(event); |
| 49 } | 49 } |
| 50 | 50 |
| 51 InputMethodMus* input_method() { return input_method_.get(); } | 51 InputMethodMus* input_method() { return input_method_.get(); } |
| 52 | 52 |
| 53 // Sets the client area on the underlying mus window. |
| 54 void SetClientArea(const gfx::Insets& insets); |
| 55 |
| 56 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to |
| 57 // clear. |
| 58 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); |
| 59 |
| 53 // Intended only for WindowTreeClient to call. | 60 // Intended only for WindowTreeClient to call. |
| 54 void set_display_id(int64_t id) { display_id_ = id; } | 61 void set_display_id(int64_t id) { display_id_ = id; } |
| 55 int64_t display_id() const { return display_id_; } | 62 int64_t display_id() const { return display_id_; } |
| 56 display::Display GetDisplay() const; | 63 display::Display GetDisplay() const; |
| 57 | 64 |
| 58 // aura::WindowTreeHostPlatform: | 65 // aura::WindowTreeHostPlatform: |
| 59 void ShowImpl() override; | 66 void ShowImpl() override; |
| 60 void HideImpl() override; | 67 void HideImpl() override; |
| 61 void SetBounds(const gfx::Rect& bounds) override; | 68 void SetBounds(const gfx::Rect& bounds) override; |
| 62 void DispatchEvent(ui::Event* event) override; | 69 void DispatchEvent(ui::Event* event) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 bool in_set_bounds_from_server_ = false; | 80 bool in_set_bounds_from_server_ = false; |
| 74 | 81 |
| 75 std::unique_ptr<InputMethodMus> input_method_; | 82 std::unique_ptr<InputMethodMus> input_method_; |
| 76 | 83 |
| 77 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 84 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
| 78 }; | 85 }; |
| 79 | 86 |
| 80 } // namespace aura | 87 } // namespace aura |
| 81 | 88 |
| 82 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |