OLD | NEW |
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 #include "mojo/services/view_manager/node.h" | 5 #include "mojo/services/view_manager/node.h" |
6 | 6 |
7 #include "mojo/services/view_manager/node_delegate.h" | 7 #include "mojo/services/view_manager/node_delegate.h" |
8 #include "mojo/services/view_manager/view.h" | 8 #include "mojo/services/view_manager/view.h" |
9 #include "ui/aura/window_property.h" | 9 #include "ui/aura/window_property.h" |
10 #include "ui/base/cursor/cursor.h" | 10 #include "ui/base/cursor/cursor.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 gfx::Size Node::GetMaximumSize() const { | 153 gfx::Size Node::GetMaximumSize() const { |
154 return gfx::Size(); | 154 return gfx::Size(); |
155 } | 155 } |
156 | 156 |
157 void Node::OnBoundsChanged(const gfx::Rect& old_bounds, | 157 void Node::OnBoundsChanged(const gfx::Rect& old_bounds, |
158 const gfx::Rect& new_bounds) { | 158 const gfx::Rect& new_bounds) { |
159 delegate_->OnNodeBoundsChanged(this, old_bounds, new_bounds); | 159 delegate_->OnNodeBoundsChanged(this, old_bounds, new_bounds); |
160 } | 160 } |
161 | 161 |
| 162 void Node::OnPropertyChanged(const void* key, intptr_t old) { |
| 163 } |
| 164 |
162 gfx::NativeCursor Node::GetCursor(const gfx::Point& point) { | 165 gfx::NativeCursor Node::GetCursor(const gfx::Point& point) { |
163 return gfx::kNullCursor; | 166 return gfx::kNullCursor; |
164 } | 167 } |
165 | 168 |
166 int Node::GetNonClientComponent(const gfx::Point& point) const { | 169 int Node::GetNonClientComponent(const gfx::Point& point) const { |
167 return HTCAPTION; | 170 return HTCAPTION; |
168 } | 171 } |
169 | 172 |
170 bool Node::ShouldDescendIntoChildForEventHandling( | 173 bool Node::ShouldDescendIntoChildForEventHandling( |
171 aura::Window* child, | 174 aura::Window* child, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 void Node::GetHitTestMask(gfx::Path* mask) const { | 209 void Node::GetHitTestMask(gfx::Path* mask) const { |
207 } | 210 } |
208 | 211 |
209 void Node::OnEvent(ui::Event* event) { | 212 void Node::OnEvent(ui::Event* event) { |
210 if (view_) | 213 if (view_) |
211 delegate_->OnViewInputEvent(view_, event); | 214 delegate_->OnViewInputEvent(view_, event); |
212 } | 215 } |
213 | 216 |
214 } // namespace service | 217 } // namespace service |
215 } // namespace mojo | 218 } // namespace mojo |
OLD | NEW |