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

Side by Side Diff: ui/events/android/motion_event_android.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 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 1
2 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Copyright 2014 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ 6 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_
7 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ 7 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_
8 8
9 #include <jni.h> 9 #include <jni.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 #include <memory>
14
13 #include "base/android/scoped_java_ref.h" 15 #include "base/android/scoped_java_ref.h"
14 #include "base/macros.h" 16 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "base/time/time.h" 17 #include "base/time/time.h"
17 #include "ui/events/events_export.h" 18 #include "ui/events/events_export.h"
18 #include "ui/events/gesture_detection/motion_event.h" 19 #include "ui/events/gesture_detection/motion_event.h"
19 #include "ui/gfx/geometry/point_f.h" 20 #include "ui/gfx/geometry/point_f.h"
20 21
21 namespace ui { 22 namespace ui {
22 23
23 // Implementation of ui::MotionEvent wrapping a native Android MotionEvent. 24 // Implementation of ui::MotionEvent wrapping a native Android MotionEvent.
24 // All *input* coordinates are in device pixels (as with Android MotionEvent), 25 // All *input* coordinates are in device pixels (as with Android MotionEvent),
25 // while all *output* coordinates are in DIPs (as with WebTouchEvent). 26 // while all *output* coordinates are in DIPs (as with WebTouchEvent).
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 // A unique identifier for the Android motion event. 134 // A unique identifier for the Android motion event.
134 const uint32_t unique_event_id_; 135 const uint32_t unique_event_id_;
135 136
136 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); 137 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid);
137 }; 138 };
138 139
139 } // namespace content 140 } // namespace content
140 141
141 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ 142 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/display/win/screen_win_unittest.cc ('k') | ui/events/android/motion_event_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698