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

Side by Side Diff: content/browser/android/popup_touch_handle_drawable.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 // ui::TouchHandleDrawable implementation. 27 // ui::TouchHandleDrawable implementation.
28 void SetEnabled(bool enabled) override; 28 void SetEnabled(bool enabled) override;
29 void SetOrientation(ui::TouchHandleOrientation orientation, 29 void SetOrientation(ui::TouchHandleOrientation orientation,
30 bool mirror_vertical, 30 bool mirror_vertical,
31 bool mirror_horizontal) override; 31 bool mirror_horizontal) override;
32 void SetOrigin(const gfx::PointF& origin) override; 32 void SetOrigin(const gfx::PointF& origin) override;
33 void SetAlpha(float alpha) override; 33 void SetAlpha(float alpha) override;
34 gfx::RectF GetVisibleBounds() const override; 34 gfx::RectF GetVisibleBounds() const override;
35 float GetDrawableHorizontalPaddingRatio() const override; 35 float GetDrawableHorizontalPaddingRatio() const override;
36 36
37 static bool RegisterPopupTouchHandleDrawable(JNIEnv* env);
38
39 private: 37 private:
40 PopupTouchHandleDrawable(JNIEnv* env, jobject obj, float dpi_scale); 38 PopupTouchHandleDrawable(JNIEnv* env, jobject obj, float dpi_scale);
41 39
42 JavaObjectWeakGlobalRef java_ref_; 40 JavaObjectWeakGlobalRef java_ref_;
43 41
44 const float dpi_scale_; 42 const float dpi_scale_;
45 float drawable_horizontal_padding_ratio_; 43 float drawable_horizontal_padding_ratio_;
46 44
47 DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable); 45 DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable);
48 }; 46 };
49 47
50 } // namespace content 48 } // namespace content
51 49
52 #endif // CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_ 50 #endif // CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698