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

Side by Side Diff: components/view_manager/gesture_manager.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/view_manager/gesture_manager.h" 5 #include "components/view_manager/gesture_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "components/view_manager/gesture_manager_delegate.h" 9 #include "components/view_manager/gesture_manager_delegate.h"
10 #include "components/view_manager/public/cpp/keys.h"
10 #include "components/view_manager/server_view.h" 11 #include "components/view_manager/server_view.h"
11 #include "components/view_manager/view_coordinate_conversions.h" 12 #include "components/view_manager/view_coordinate_conversions.h"
12 #include "components/view_manager/view_locator.h" 13 #include "components/view_manager/view_locator.h"
13 #include "third_party/mojo_services/src/input_events/public/interfaces/input_eve nts.mojom.h"
14 #include "third_party/mojo_services/src/view_manager/public/cpp/keys.h"
15 #include "ui/gfx/geometry/point_f.h" 14 #include "ui/gfx/geometry/point_f.h"
15 #include "ui/mojo/events/input_events.mojom.h"
16 16
17 namespace view_manager { 17 namespace view_manager {
18 18
19 using Views = std::vector<const ServerView*>; 19 using Views = std::vector<const ServerView*>;
20 20
21 namespace { 21 namespace {
22 22
23 GestureManager::GestureAndConnectionId MakeGestureAndConnectionId( 23 GestureManager::GestureAndConnectionId MakeGestureAndConnectionId(
24 const ServerView* view, 24 const ServerView* view,
25 uint32_t gesture_id) { 25 uint32_t gesture_id) {
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 void GestureManager::ScheduleDelete(Pointer* pointer) { 692 void GestureManager::ScheduleDelete(Pointer* pointer) {
693 auto iter = 693 auto iter =
694 std::find(active_pointers_.begin(), active_pointers_.end(), pointer); 694 std::find(active_pointers_.begin(), active_pointers_.end(), pointer);
695 if (iter != active_pointers_.end()) { 695 if (iter != active_pointers_.end()) {
696 active_pointers_.weak_erase(iter); 696 active_pointers_.weak_erase(iter);
697 pointers_to_delete_.push_back(pointer); 697 pointers_to_delete_.push_back(pointer);
698 } 698 }
699 } 699 }
700 700
701 } // namespace view_manager 701 } // namespace view_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698