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 COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
8 #include "mojo/application/public/interfaces/service_provider.mojom.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h"
10 #include "ui/mojo/events/input_events.mojom.h"
11 #include "ui/mojo/events/input_key_codes.mojom.h"
13 namespace window_manager
{
15 class WindowManagerDelegate
{
17 // See WindowManager::Embed() for details.
18 virtual void Embed(const mojo::String
& url
,
19 mojo::InterfaceRequest
<mojo::ServiceProvider
> services
,
20 mojo::ServiceProviderPtr exposed_services
) = 0;
22 virtual void OnAcceleratorPressed(mojo::View
* view
,
23 mojo::KeyboardCode keyboard_code
,
24 mojo::EventFlags flags
) {}
27 virtual ~WindowManagerDelegate() {}
32 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_