| 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> |
| 9 |
| 10 #include <map> |
| 11 #include <string> |
| 12 #include <vector> |
| 13 |
| 8 #include "ui/aura/aura_export.h" | 14 #include "ui/aura/aura_export.h" |
| 9 | 15 |
| 10 namespace gfx { | 16 namespace gfx { |
| 11 class Rect; | 17 class Rect; |
| 12 } | 18 } |
| 13 | 19 |
| 14 namespace aura { | 20 namespace aura { |
| 15 | 21 |
| 16 class WindowPortMus; | 22 class WindowPortMus; |
| 17 class WindowTreeHostMus; | 23 class WindowTreeHostMus; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 WindowTreeHostMus* window_tree_host, | 36 WindowTreeHostMus* window_tree_host, |
| 31 const gfx::Insets& client_area, | 37 const gfx::Insets& client_area, |
| 32 const std::vector<gfx::Rect>& additional_client_areas) = 0; | 38 const std::vector<gfx::Rect>& additional_client_areas) = 0; |
| 33 | 39 |
| 34 // Called when the hit test mask is about to be cleared. | 40 // Called when the hit test mask is about to be cleared. |
| 35 virtual void OnWindowTreeHostHitTestMaskWillChange( | 41 virtual void OnWindowTreeHostHitTestMaskWillChange( |
| 36 WindowTreeHostMus* window_tree_host, | 42 WindowTreeHostMus* window_tree_host, |
| 37 const base::Optional<gfx::Rect>& mask_rect) = 0; | 43 const base::Optional<gfx::Rect>& mask_rect) = 0; |
| 38 | 44 |
| 39 // Called when a WindowTreeHostMus is created without a WindowPort. | 45 // Called when a WindowTreeHostMus is created without a WindowPort. |
| 40 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() = 0; | 46 // TODO: this should take an unordered_map, see http://crbug.com/670515. |
| 47 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( |
| 48 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
| 41 | 49 |
| 42 // Called from WindowTreeHostMus's constructor once the Window has been | 50 // Called from WindowTreeHostMus's constructor once the Window has been |
| 43 // created. | 51 // created. |
| 44 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; | 52 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; |
| 45 | 53 |
| 46 protected: | 54 protected: |
| 47 virtual ~WindowTreeHostMusDelegate() {} | 55 virtual ~WindowTreeHostMusDelegate() {} |
| 48 }; | 56 }; |
| 49 | 57 |
| 50 } // namespace aura | 58 } // namespace aura |
| 51 | 59 |
| 52 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 60 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| OLD | NEW |