| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const std::vector<gfx::Rect>& additional_client_area); | 65 const std::vector<gfx::Rect>& additional_client_area); |
| 66 | 66 |
| 67 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to | 67 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to |
| 68 // clear. | 68 // clear. |
| 69 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); | 69 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); |
| 70 | 70 |
| 71 // Requests that the window manager change the activation to the next window. |
| 72 void DeactivateWindow(); |
| 73 |
| 71 // Intended only for WindowTreeClient to call. | 74 // Intended only for WindowTreeClient to call. |
| 72 void set_display_id(int64_t id) { display_id_ = id; } | 75 void set_display_id(int64_t id) { display_id_ = id; } |
| 73 int64_t display_id() const { return display_id_; } | 76 int64_t display_id() const { return display_id_; } |
| 74 display::Display GetDisplay() const; | 77 display::Display GetDisplay() const; |
| 75 | 78 |
| 76 // aura::WindowTreeHostPlatform: | 79 // aura::WindowTreeHostPlatform: |
| 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; |
| 80 void OnClosed() override; | 83 void OnClosed() override; |
| 81 void OnActivationChanged(bool active) override; | 84 void OnActivationChanged(bool active) override; |
| 82 void OnCloseRequest() override; | 85 void OnCloseRequest() override; |
| 83 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; | 86 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; |
| 84 | 87 |
| 85 private: | 88 private: |
| 86 int64_t display_id_; | 89 int64_t display_id_; |
| 87 | 90 |
| 88 WindowTreeHostMusDelegate* delegate_; | 91 WindowTreeHostMusDelegate* delegate_; |
| 89 | 92 |
| 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 |