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

Side by Side Diff: mojo/services/view_manager/root_node_manager.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
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_ROOT_NODE_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // term notify their clients. 84 // term notify their clients.
85 void ProcessNodeBoundsChanged(const Node* node, 85 void ProcessNodeBoundsChanged(const Node* node,
86 const gfx::Rect& old_bounds, 86 const gfx::Rect& old_bounds,
87 const gfx::Rect& new_bounds); 87 const gfx::Rect& new_bounds);
88 void ProcessNodeHierarchyChanged(const Node* node, 88 void ProcessNodeHierarchyChanged(const Node* node,
89 const Node* new_parent, 89 const Node* new_parent,
90 const Node* old_parent); 90 const Node* old_parent);
91 void ProcessNodeViewReplaced(const Node* node, 91 void ProcessNodeViewReplaced(const Node* node,
92 const View* new_view_id, 92 const View* new_view_id,
93 const View* old_view_id); 93 const View* old_view_id);
94 void ProcessViewInputEvent(const View* view, const ui::Event* event);
94 void ProcessNodeDeleted(const NodeId& node); 95 void ProcessNodeDeleted(const NodeId& node);
95 void ProcessViewDeleted(const ViewId& view); 96 void ProcessViewDeleted(const ViewId& view);
96 97
97 private: 98 private:
98 // Used to setup any static state needed by RootNodeManager. 99 // Used to setup any static state needed by RootNodeManager.
99 struct Context { 100 struct Context {
100 Context(); 101 Context();
101 ~Context(); 102 ~Context();
102 }; 103 };
103 104
(...skipping 15 matching lines...) Expand all
119 return connection_id == change_source_; 120 return connection_id == change_source_;
120 } 121 }
121 122
122 // Overridden from NodeDelegate: 123 // Overridden from NodeDelegate:
123 virtual void OnNodeHierarchyChanged(const Node* node, 124 virtual void OnNodeHierarchyChanged(const Node* node,
124 const Node* new_parent, 125 const Node* new_parent,
125 const Node* old_parent) OVERRIDE; 126 const Node* old_parent) OVERRIDE;
126 virtual void OnNodeViewReplaced(const Node* node, 127 virtual void OnNodeViewReplaced(const Node* node,
127 const View* new_view, 128 const View* new_view,
128 const View* old_view) OVERRIDE; 129 const View* old_view) OVERRIDE;
130 virtual void OnViewInputEvent(const View* view,
131 const ui::Event* event) OVERRIDE;
129 132
130 Context context_; 133 Context context_;
131 134
132 // ID to use for next ViewManagerConnection. 135 // ID to use for next ViewManagerConnection.
133 TransportConnectionId next_connection_id_; 136 TransportConnectionId next_connection_id_;
134 137
135 TransportChangeId next_server_change_id_; 138 TransportChangeId next_server_change_id_;
136 139
137 // Set of ViewManagerConnections. 140 // Set of ViewManagerConnections.
138 ConnectionMap connection_map_; 141 ConnectionMap connection_map_;
(...skipping 10 matching lines...) Expand all
149 Node root_; 152 Node root_;
150 153
151 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 154 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
152 }; 155 };
153 156
154 } // namespace service 157 } // namespace service
155 } // namespace view_manager 158 } // namespace view_manager
156 } // namespace mojo 159 } // namespace mojo
157 160
158 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 161 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698