Fork the mojo shell interfaces used by Mandoline.
[chromium-blink-merge.git] / components / window_manager / window_manager_delegate.h
blob1ea7923bf27833278a0b40319bd51b13c2e01c01
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 {
16 public:
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) {}
26 protected:
27 virtual ~WindowManagerDelegate() {}
30 } // namespace mojo
32 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_