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

Side by Side Diff: mojo/services/public/cpp/view_manager/window_manager_delegate.h

Issue 636363002: Splits window manager like methods into ViewManagerServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 6 years, 2 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
(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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
7
8 #include "mojo/public/interfaces/application/service_provider.mojom.h"
9 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
10
11 namespace mojo {
12
13 class View;
14
15 // A WindowManagerDelegate is provided by the application embedded at the
16 // service root view.
17 class WindowManagerDelegate {
18 public:
19 // Create an appropriate view to embed |url|.
20 virtual void Embed(const String& url,
21 InterfaceRequest<ServiceProvider> service_provider) {}
22
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;
26
27 protected:
28 virtual ~WindowManagerDelegate() {}
29 };
30
31 } // namespace mojo
32
33 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_manager.h ('k') | mojo/services/public/interfaces/view_manager/view_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698