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

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

Issue 2157793002: Remove ContentViewCore::RequestTextSurroundingSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the review comments. 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 30 matching lines...) Expand all
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 bool ShowPastePopup(int x, int y) = 0; 47 virtual bool ShowPastePopup(int x, int y) = 0;
48 48
49 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; 49 virtual void PauseOrResumeGeolocation(bool should_pause) = 0;
50 50
51 // Text surrounding selection.
52 virtual void RequestTextSurroundingSelection(
53 int max_length,
54 const base::Callback<void(const base::string16& content,
55 int start_offset,
56 int end_offset)>& callback) = 0;
57
58 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; 51 virtual ui::WindowAndroid* GetWindowAndroid() const = 0;
59 virtual const base::android::JavaRef<jobject>& GetViewAndroidDelegate() 52 virtual const base::android::JavaRef<jobject>& GetViewAndroidDelegate()
60 const = 0; 53 const = 0;
61 virtual cc::Layer* GetLayer() const = 0; 54 virtual cc::Layer* GetLayer() const = 0;
62 55
63 protected: 56 protected:
64 ~ContentViewCore() {} 57 ~ContentViewCore() {}
65 }; 58 };
66 59
67 }; // namespace content 60 }; // namespace content
68 61
69 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 62 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698