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

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

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 4 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 | Annotate | Revision Log
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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" 8 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace view_manager {
12 11
13 class View; 12 class View;
14 13
15 // A WindowManagerDelegate is provided by the application embedded at the 14 // A WindowManagerDelegate is provided by the application embedded at the
16 // service root node. 15 // service root node.
17 class WindowManagerDelegate { 16 class WindowManagerDelegate {
18 public: 17 public:
19 // Create an appropriate node to embed |url|. 18 // Create an appropriate node to embed |url|.
20 virtual void Embed(const String& url) = 0; 19 virtual void Embed(const String& url) = 0;
21 20
22 // Dispatch the supplied input event to the appropriate view (taking into 21 // Dispatch the supplied input event to the appropriate view (taking into
23 // account focus, activation, modality, etc.). 22 // account focus, activation, modality, etc.).
24 virtual void DispatchEvent(View* target, EventPtr event) = 0; 23 virtual void DispatchEvent(View* target, EventPtr event) = 0;
25 24
26 protected: 25 protected:
27 virtual ~WindowManagerDelegate() {} 26 virtual ~WindowManagerDelegate() {}
28 }; 27 };
29 28
30 } // namespace view_manager
31 } // namespace mojo 29 } // namespace mojo
32 30
33 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_ 31 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view_observer.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