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

Side by Side Diff: services/window_manager/view_target.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 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
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 #include "services/window_manager/view_target.h" 5 #include "services/window_manager/view_target.h"
6 6
7 #include "mojo/converters/geometry/geometry_type_converters.h" 7 #include "mojo/converters/geometry/geometry_type_converters.h"
8 #include "mojo/services/view_manager/public/cpp/view.h" 8 #include "mojo/services/view_manager/cpp/view.h"
9 #include "mojo/services/view_manager/public/cpp/view_property.h" 9 #include "mojo/services/view_manager/cpp/view_property.h"
10 #include "services/window_manager/view_targeter.h" 10 #include "services/window_manager/view_targeter.h"
11 #include "services/window_manager/window_manager_app.h" 11 #include "services/window_manager/window_manager_app.h"
12 #include "ui/events/event.h" 12 #include "ui/events/event.h"
13 #include "ui/events/event_target_iterator.h" 13 #include "ui/events/event_target_iterator.h"
14 #include "ui/events/event_targeter.h" 14 #include "ui/events/event_targeter.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/point3_f.h" 16 #include "ui/gfx/point3_f.h"
17 #include "ui/gfx/transform.h" 17 #include "ui/gfx/transform.h"
18 18
19 namespace window_manager { 19 namespace window_manager {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 gfx::Vector2d* offset) const { 158 gfx::Vector2d* offset) const {
159 const ViewTarget* v = this; 159 const ViewTarget* v = this;
160 for (; v && v != ancestor; v = v->GetParent()) { 160 for (; v && v != ancestor; v = v->GetParent()) {
161 gfx::Rect bounds = v->GetBounds(); 161 gfx::Rect bounds = v->GetBounds();
162 *offset += gfx::Vector2d(bounds.x(), bounds.y()); 162 *offset += gfx::Vector2d(bounds.x(), bounds.y());
163 } 163 }
164 return v == ancestor; 164 return v == ancestor;
165 } 165 }
166 166
167 } // namespace window_manager 167 } // namespace window_manager
OLDNEW
« no previous file with comments | « services/window_manager/view_event_dispatcher.cc ('k') | services/window_manager/view_target_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698