Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: components/window_manager/window_manager_delegate.h

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include "mojo/application/public/interfaces/service_provider.mojom.h"
8 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h"
9 #include "third_party/mojo/src/mojo/public/interfaces/application/service_provid er.mojom.h"
10 #include "ui/mojo/events/input_events.mojom.h" 10 #include "ui/mojo/events/input_events.mojom.h"
11 #include "ui/mojo/events/input_key_codes.mojom.h" 11 #include "ui/mojo/events/input_key_codes.mojom.h"
12 12
13 namespace window_manager { 13 namespace window_manager {
14 14
15 class WindowManagerDelegate { 15 class WindowManagerDelegate {
16 public: 16 public:
17 // See WindowManager::Embed() for details. 17 // See WindowManager::Embed() for details.
18 virtual void Embed(const mojo::String& url, 18 virtual void Embed(const mojo::String& url,
19 mojo::InterfaceRequest<mojo::ServiceProvider> services, 19 mojo::InterfaceRequest<mojo::ServiceProvider> services,
20 mojo::ServiceProviderPtr exposed_services) = 0; 20 mojo::ServiceProviderPtr exposed_services) = 0;
21 21
22 virtual void OnAcceleratorPressed(mojo::View* view, 22 virtual void OnAcceleratorPressed(mojo::View* view,
23 mojo::KeyboardCode keyboard_code, 23 mojo::KeyboardCode keyboard_code,
24 mojo::EventFlags flags) {} 24 mojo::EventFlags flags) {}
25 25
26 protected: 26 protected:
27 virtual ~WindowManagerDelegate() {} 27 virtual ~WindowManagerDelegate() {}
28 }; 28 };
29 29
30 } // namespace mojo 30 } // namespace mojo
31 31
32 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 32 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698