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
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
8 #include "mojo/public/interfaces/application/service_provider.mojom.h"
9 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
15 // A WindowManagerDelegate is provided by the application embedded at the
17 class WindowManagerDelegate
{
19 // Create an appropriate view to embed |url|.
20 virtual void Embed(const String
& url
,
21 InterfaceRequest
<ServiceProvider
> service_provider
) {}
23 // Dispatch the supplied input event to the appropriate view (taking into
24 // account focus, activation, modality, etc.).
25 virtual void DispatchEvent(EventPtr event
) = 0;
28 virtual ~WindowManagerDelegate() {}
33 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_