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

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

Issue 1085233004: Moves services implementations out of third_party/mojo_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unnecessary changes Created 5 years, 8 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 "components/window_manager/view_target.h" 5 #include "components/window_manager/view_target.h"
6 6
7 #include "components/view_manager/public/cpp/view.h"
8 #include "components/view_manager/public/cpp/view_property.h"
7 #include "components/window_manager/view_targeter.h" 9 #include "components/window_manager/view_targeter.h"
8 #include "components/window_manager/window_manager_app.h" 10 #include "components/window_manager/window_manager_app.h"
9 #include "mojo/converters/geometry/geometry_type_converters.h" 11 #include "mojo/converters/geometry/geometry_type_converters.h"
10 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h"
11 #include "third_party/mojo_services/src/view_manager/public/cpp/view_property.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/point3_f.h" 15 #include "ui/gfx/geometry/point3_f.h"
16 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
17 #include "ui/gfx/transform.h" 17 #include "ui/gfx/transform.h"
18 18
19 namespace window_manager { 19 namespace window_manager {
20 20
21 namespace { 21 namespace {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 gfx::Vector2d* offset) const { 183 gfx::Vector2d* offset) const {
184 const ViewTarget* v = this; 184 const ViewTarget* v = this;
185 for (; v && v != ancestor; v = v->GetParent()) { 185 for (; v && v != ancestor; v = v->GetParent()) {
186 gfx::Rect bounds = v->GetBounds(); 186 gfx::Rect bounds = v->GetBounds();
187 *offset += gfx::Vector2d(bounds.x(), bounds.y()); 187 *offset += gfx::Vector2d(bounds.x(), bounds.y());
188 } 188 }
189 return v == ancestor; 189 return v == ancestor;
190 } 190 }
191 191
192 } // namespace window_manager 192 } // namespace window_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698