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

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

Issue 335943002: [Android] Composited selection handle rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_native_handles_final
Patch Set: Clean up paste popup interaction Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
6 #define CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
7
8 #include "content/browser/renderer_host/input/touch_handle.h"
9
10 #include "base/android/jni_android.h"
11
12 namespace content {
13
14 // Touch handle drawable backed by an Android PopupWindow.
15 class PopupTouchHandleDrawable : public TouchHandleDrawable {
16 public:
17 PopupTouchHandleDrawable(base::android::ScopedJavaLocalRef<jobject> drawable,
18 float dpi_scale);
19 virtual ~PopupTouchHandleDrawable();
20
21 // TouchHandleDrawable implementation.
22 virtual void SetOrientation(TouchHandleOrientation orientation) OVERRIDE;
23 virtual void SetAlpha(float alpha) OVERRIDE;
24 virtual void SetFocus(const gfx::PointF& position) OVERRIDE;
25 virtual void SetVisible(bool visible) OVERRIDE;
26 virtual bool ContainsPoint(const gfx::PointF& point) const OVERRIDE;
27
28 static bool RegisterPopupTouchHandleDrawable(JNIEnv* env);
29
30 private:
31 const float dpi_scale_;
32 base::android::ScopedJavaGlobalRef<jobject> drawable_;
33
34 DISALLOW_COPY_AND_ASSIGN(PopupTouchHandleDrawable);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_BROWSER_ANDROID_POPUP_TOUCH_HANDLE_DRAWABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698