| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual void OnWindowTreeHostClientAreaWillChange( | 35 virtual void OnWindowTreeHostClientAreaWillChange( |
| 36 WindowTreeHostMus* window_tree_host, | 36 WindowTreeHostMus* window_tree_host, |
| 37 const gfx::Insets& client_area, | 37 const gfx::Insets& client_area, |
| 38 const std::vector<gfx::Rect>& additional_client_areas) = 0; | 38 const std::vector<gfx::Rect>& additional_client_areas) = 0; |
| 39 | 39 |
| 40 // Called when the hit test mask is about to be cleared. | 40 // Called when the hit test mask is about to be cleared. |
| 41 virtual void OnWindowTreeHostHitTestMaskWillChange( | 41 virtual void OnWindowTreeHostHitTestMaskWillChange( |
| 42 WindowTreeHostMus* window_tree_host, | 42 WindowTreeHostMus* window_tree_host, |
| 43 const base::Optional<gfx::Rect>& mask_rect) = 0; | 43 const base::Optional<gfx::Rect>& mask_rect) = 0; |
| 44 | 44 |
| 45 // Called when the opacity is changed client side. |
| 46 virtual void OnWindowTreeHostSetOpacity(WindowTreeHostMus* window_tree_host, |
| 47 float opacity) = 0; |
| 48 |
| 45 // Called to clear the focus of the current window. | 49 // Called to clear the focus of the current window. |
| 46 virtual void OnWindowTreeHostDeactivateWindow( | 50 virtual void OnWindowTreeHostDeactivateWindow( |
| 47 WindowTreeHostMus* window_tree_host) = 0; | 51 WindowTreeHostMus* window_tree_host) = 0; |
| 48 | 52 |
| 49 // Called to stack the native window above the native window of |window|. | 53 // Called to stack the native window above the native window of |window|. |
| 50 virtual void OnWindowTreeHostStackAbove( | 54 virtual void OnWindowTreeHostStackAbove( |
| 51 WindowTreeHostMus* window_tree_host, | 55 WindowTreeHostMus* window_tree_host, |
| 52 Window* window) = 0; | 56 Window* window) = 0; |
| 53 | 57 |
| 54 // Called to stack the native window above other native windows. | 58 // Called to stack the native window above other native windows. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 76 // created. | 80 // created. |
| 77 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; | 81 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; |
| 78 | 82 |
| 79 protected: | 83 protected: |
| 80 virtual ~WindowTreeHostMusDelegate() {} | 84 virtual ~WindowTreeHostMusDelegate() {} |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 } // namespace aura | 87 } // namespace aura |
| 84 | 88 |
| 85 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| OLD | NEW |