| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 71 // Requests that the window manager change the activation to the next window. |
| 72 void DeactivateWindow(); | 72 void DeactivateWindow(); |
| 73 | 73 |
| 74 // Requests that our root window be stacked above all other parallel root |
| 75 // windows which we might not own. |
| 76 void StackAtTop(); |
| 77 |
| 74 // Intended only for WindowTreeClient to call. | 78 // Intended only for WindowTreeClient to call. |
| 75 void set_display_id(int64_t id) { display_id_ = id; } | 79 void set_display_id(int64_t id) { display_id_ = id; } |
| 76 int64_t display_id() const { return display_id_; } | 80 int64_t display_id() const { return display_id_; } |
| 77 display::Display GetDisplay() const; | 81 display::Display GetDisplay() const; |
| 78 | 82 |
| 79 // aura::WindowTreeHostPlatform: | 83 // aura::WindowTreeHostPlatform: |
| 80 void HideImpl() override; | 84 void HideImpl() override; |
| 81 void SetBoundsInPixels(const gfx::Rect& bounds) override; | 85 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
| 82 void DispatchEvent(ui::Event* event) override; | 86 void DispatchEvent(ui::Event* event) override; |
| 83 void OnClosed() override; | 87 void OnClosed() override; |
| 84 void OnActivationChanged(bool active) override; | 88 void OnActivationChanged(bool active) override; |
| 85 void OnCloseRequest() override; | 89 void OnCloseRequest() override; |
| 86 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; | 90 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; |
| 87 | 91 |
| 88 private: | 92 private: |
| 89 int64_t display_id_; | 93 int64_t display_id_; |
| 90 | 94 |
| 91 WindowTreeHostMusDelegate* delegate_; | 95 WindowTreeHostMusDelegate* delegate_; |
| 92 | 96 |
| 93 bool in_set_bounds_from_server_ = false; | 97 bool in_set_bounds_from_server_ = false; |
| 94 | 98 |
| 95 std::unique_ptr<InputMethodMus> input_method_; | 99 std::unique_ptr<InputMethodMus> input_method_; |
| 96 | 100 |
| 97 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 101 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
| 98 }; | 102 }; |
| 99 | 103 |
| 100 } // namespace aura | 104 } // namespace aura |
| 101 | 105 |
| 102 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 106 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |