| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // whether the move loop completed successfully. | 159 // whether the move loop completed successfully. |
| 160 void PerformWindowMove(Window* window, | 160 void PerformWindowMove(Window* window, |
| 161 ui::mojom::MoveLoopSource source, | 161 ui::mojom::MoveLoopSource source, |
| 162 const gfx::Point& cursor_location, | 162 const gfx::Point& cursor_location, |
| 163 const base::Callback<void(bool)>& callback); | 163 const base::Callback<void(bool)>& callback); |
| 164 | 164 |
| 165 // Cancels a in progress window move. (If no window is currently being moved, | 165 // Cancels a in progress window move. (If no window is currently being moved, |
| 166 // does nothing.) | 166 // does nothing.) |
| 167 void CancelWindowMove(Window* window); | 167 void CancelWindowMove(Window* window); |
| 168 | 168 |
| 169 // Called when the capture client has been set for a window. |
| 170 void OnCaptureClientSet(client::CaptureClient* capture_client); |
| 171 |
| 172 // Called when the capture client will be unset for a window. |
| 173 void OnCaptureClientUnset(client::CaptureClient* capture_client); |
| 174 |
| 169 void AddObserver(WindowTreeClientObserver* observer); | 175 void AddObserver(WindowTreeClientObserver* observer); |
| 170 void RemoveObserver(WindowTreeClientObserver* observer); | 176 void RemoveObserver(WindowTreeClientObserver* observer); |
| 171 | 177 |
| 172 void AddTestObserver(WindowTreeClientTestObserver* observer); | 178 void AddTestObserver(WindowTreeClientTestObserver* observer); |
| 173 void RemoveTestObserver(WindowTreeClientTestObserver* observer); | 179 void RemoveTestObserver(WindowTreeClientTestObserver* observer); |
| 174 | 180 |
| 175 private: | 181 private: |
| 176 friend class InFlightBoundsChange; | 182 friend class InFlightBoundsChange; |
| 177 friend class InFlightFocusChange; | 183 friend class InFlightFocusChange; |
| 178 friend class InFlightPropertyChange; | 184 friend class InFlightPropertyChange; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 std::unique_ptr<ui::Gpu> gpu_; | 551 std::unique_ptr<ui::Gpu> gpu_; |
| 546 std::unique_ptr<MusContextFactory> compositor_context_factory_; | 552 std::unique_ptr<MusContextFactory> compositor_context_factory_; |
| 547 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 553 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 548 | 554 |
| 549 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 555 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 550 }; | 556 }; |
| 551 | 557 |
| 552 } // namespace aura | 558 } // namespace aura |
| 553 | 559 |
| 554 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 560 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |