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

Side by Side Diff: content/public/browser/android/content_view_core.h

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 27 matching lines...) Expand all
38 public: 38 public:
39 // Returns the existing ContentViewCore for |web_contents|, or nullptr. 39 // Returns the existing ContentViewCore for |web_contents|, or nullptr.
40 static ContentViewCore* FromWebContents(WebContents* web_contents); 40 static ContentViewCore* FromWebContents(WebContents* web_contents);
41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); 41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj);
42 42
43 virtual WebContents* GetWebContents() const = 0; 43 virtual WebContents* GetWebContents() const = 0;
44 44
45 // May return null reference. 45 // May return null reference.
46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; 46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
47 virtual const scoped_refptr<cc::Layer>& GetLayer() const = 0; 47 virtual const scoped_refptr<cc::Layer>& GetLayer() const = 0;
48 virtual bool ShowPastePopup(int x, int y) = 0;
49 48
50 virtual float GetDpiScale() const = 0; 49 virtual float GetDpiScale() const = 0;
51 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; 50 virtual void PauseOrResumeGeolocation(bool should_pause) = 0;
52 51
53 // Text surrounding selection. 52 // Text surrounding selection.
54 virtual void RequestTextSurroundingSelection( 53 virtual void RequestTextSurroundingSelection(
55 int max_length, 54 int max_length,
56 const base::Callback<void(const base::string16& content, 55 const base::Callback<void(const base::string16& content,
57 int start_offset, 56 int start_offset,
58 int end_offset)>& callback) = 0; 57 int end_offset)>& callback) = 0;
59 58
60 protected: 59 protected:
61 ~ContentViewCore() override {} 60 ~ContentViewCore() override {}
62 }; 61 };
63 62
64 }; // namespace content 63 }; // namespace content
65 64
66 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 65 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698