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

Side by Side Diff: mojo/services/view_manager/node_delegate.h

Issue 300863003: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: , Created 6 years, 6 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
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEW_MANAGER_NODE_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
7 7
8 #include "mojo/services/view_manager/view_manager_export.h" 8 #include "mojo/services/view_manager/view_manager_export.h"
9 9
10 namespace ui {
11 class Event;
12 }
13
10 namespace mojo { 14 namespace mojo {
11 namespace view_manager { 15 namespace view_manager {
12 namespace service { 16 namespace service {
13 17
14 class Node; 18 class Node;
15 class View; 19 class View;
16 20
17 class MOJO_VIEW_MANAGER_EXPORT NodeDelegate { 21 class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
18 public: 22 public:
19 // Invoked when the hierarchy has changed. 23 // Invoked when the hierarchy has changed.
20 virtual void OnNodeHierarchyChanged(const Node* node, 24 virtual void OnNodeHierarchyChanged(const Node* node,
21 const Node* new_parent, 25 const Node* new_parent,
22 const Node* old_parent) = 0; 26 const Node* old_parent) = 0;
23 27
24 // Invoked when the View associated with a node changes. 28 // Invoked when the View associated with a node changes.
25 virtual void OnNodeViewReplaced(const Node* node, 29 virtual void OnNodeViewReplaced(const Node* node,
26 const View* new_view, 30 const View* new_view,
27 const View* old_view) = 0; 31 const View* old_view) = 0;
28 32
33 // Invoked when an input event is received by the View at this node.
34 virtual void OnViewInputEvent(const View* view,
35 const ui::Event* event) = 0;
36
29 protected: 37 protected:
30 virtual ~NodeDelegate() {} 38 virtual ~NodeDelegate() {}
31 }; 39 };
32 40
33 } // namespace service 41 } // namespace service
34 } // namespace view_manager 42 } // namespace view_manager
35 } // namespace mojo 43 } // namespace mojo
36 44
37 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_ 45 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698