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

Side by Side Diff: content/browser/android/popup_touch_handle_drawable.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 // 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 #ifndef CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
6 #define CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_ 6 #define CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
7 7
8 #include "ui/touch_selection/touch_handle.h" 8 #include "ui/touch_selection/touch_handle.h"
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_weak_ref.h" 11 #include "base/android/jni_weak_ref.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 class ContentViewCore; 17 class ContentViewCore;
17 18
18 // Touch handle drawable backed by an Android PopupWindow. 19 // Touch handle drawable backed by an Android PopupWindow.
19 class PopupTouchHandleDrawable : public ui::TouchHandleDrawable { 20 class PopupTouchHandleDrawable : public ui::TouchHandleDrawable {
20 public: 21 public:
21 static std::unique_ptr<PopupTouchHandleDrawable> Create( 22 static std::unique_ptr<PopupTouchHandleDrawable> Create(
22 ContentViewCore* content_view_core); 23 ContentViewCore* content_view_core);
(...skipping 18 matching lines...) Expand all
41 42
42 const float dpi_scale_; 43 const float dpi_scale_;
43 float drawable_horizontal_padding_ratio_; 44 float drawable_horizontal_padding_ratio_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable); 46 DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable);
46 }; 47 };
47 48
48 } // namespace content 49 } // namespace content
49 50
50 #endif // CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_ 51 #endif // CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
OLDNEW
« no previous file with comments | « content/browser/android/overscroll_controller_android.h ('k') | content/browser/renderer_host/browser_compositor_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698