| 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 MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ |
| 6 #define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | 6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/bindings/string.h" | 8 #include "mojo/public/cpp/bindings/string.h" |
| 9 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 9 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 | 12 |
| 13 class WindowManagerDelegate { | 13 class WindowManagerDelegate { |
| 14 public: | 14 public: |
| 15 // See WindowManager::Embed() for details. | 15 // See WindowManager::Embed() for details. |
| 16 virtual void Embed(const String& url, | 16 virtual void Embed(const String& url, |
| 17 InterfaceRequest<ServiceProvider> service_provider) = 0; | 17 InterfaceRequest<ServiceProvider> service_provider) = 0; |
| 18 | 18 |
| 19 protected: | 19 protected: |
| 20 virtual ~WindowManagerDelegate() {} | 20 virtual ~WindowManagerDelegate() {} |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace mojo | 23 } // namespace mojo |
| 24 | 24 |
| 25 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | 25 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |