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

Unified Diff: services/window_manager/view_target.cc

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/window_manager/view_target.h ('k') | services/window_manager/view_targeter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/window_manager/view_target.cc
diff --git a/services/window_manager/view_target.cc b/services/window_manager/view_target.cc
index 0d0f9fa92f34d69b272a32da040f94f92532c8b3..066e609d07df217ffa3c989d773bc2f13359bf66 100644
--- a/services/window_manager/view_target.cc
+++ b/services/window_manager/view_target.cc
@@ -57,7 +57,7 @@ void ViewTarget::ConvertPointToTarget(const ViewTarget* source,
target->ConvertPointFromAncestor(root_target, point);
}
-std::vector<ViewTarget*> ViewTarget::GetChildren() {
+std::vector<ViewTarget*> ViewTarget::GetChildren() const {
std::vector<ViewTarget*> targets;
for (mojo::View* child : view_->children())
targets.push_back(TargetFromView(child));
@@ -119,7 +119,7 @@ ui::EventTarget* ViewTarget::GetParentTarget() {
return TargetFromView(view_->parent());
}
-scoped_ptr<ui::EventTargetIterator> ViewTarget::GetChildIterator() {
+scoped_ptr<ui::EventTargetIterator> ViewTarget::GetChildIterator() const {
return scoped_ptr<ui::EventTargetIterator>(
new ui::CopyingEventTargetIteratorImpl<ViewTarget>(GetChildren()));
}
« no previous file with comments | « services/window_manager/view_target.h ('k') | services/window_manager/view_targeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698