| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | |
| 6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | |
| 7 | |
| 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" | |
| 12 | |
| 13 namespace window_manager { | |
| 14 | |
| 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; | |
| 21 | |
| 22 virtual void OnAcceleratorPressed(mojo::View* view, | |
| 23 mojo::KeyboardCode keyboard_code, | |
| 24 mojo::EventFlags flags) {} | |
| 25 | |
| 26 protected: | |
| 27 virtual ~WindowManagerDelegate() {} | |
| 28 }; | |
| 29 | |
| 30 } // namespace mojo | |
| 31 | |
| 32 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ | |
| OLD | NEW |