| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 InputMethodMus* input_method() { return input_method_.get(); } | 61 InputMethodMus* input_method() { return input_method_.get(); } |
| 62 | 62 |
| 63 // Sets the client area on the underlying mus window. | 63 // Sets the client area on the underlying mus window. |
| 64 void SetClientArea(const gfx::Insets& insets); | 64 void SetClientArea(const gfx::Insets& insets); |
| 65 | 65 |
| 66 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to | 66 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to |
| 67 // clear. | 67 // clear. |
| 68 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); | 68 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); |
| 69 | 69 |
| 70 // Sends a focus change to the mus server with a null window. |
| 71 void ClearFocus(); |
| 72 |
| 70 // Intended only for WindowTreeClient to call. | 73 // Intended only for WindowTreeClient to call. |
| 71 void set_display_id(int64_t id) { display_id_ = id; } | 74 void set_display_id(int64_t id) { display_id_ = id; } |
| 72 int64_t display_id() const { return display_id_; } | 75 int64_t display_id() const { return display_id_; } |
| 73 display::Display GetDisplay() const; | 76 display::Display GetDisplay() const; |
| 74 | 77 |
| 75 // aura::WindowTreeHostPlatform: | 78 // aura::WindowTreeHostPlatform: |
| 76 void ShowImpl() override; | 79 void ShowImpl() override; |
| 77 void HideImpl() override; | 80 void HideImpl() override; |
| 78 void SetBoundsInPixels(const gfx::Rect& bounds) override; | 81 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
| 79 void DispatchEvent(ui::Event* event) override; | 82 void DispatchEvent(ui::Event* event) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 90 bool in_set_bounds_from_server_ = false; | 93 bool in_set_bounds_from_server_ = false; |
| 91 | 94 |
| 92 std::unique_ptr<InputMethodMus> input_method_; | 95 std::unique_ptr<InputMethodMus> input_method_; |
| 93 | 96 |
| 94 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 97 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace aura | 100 } // namespace aura |
| 98 | 101 |
| 99 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 102 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |