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

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

Issue 10993089: Upstream Android implementation of WebContentsViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
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_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ui::WindowAndroid* window_android); 42 ui::WindowAndroid* window_android);
43 43
44 // ContentViewCore implementation. 44 // ContentViewCore implementation.
45 virtual void Destroy(JNIEnv* env, jobject obj) OVERRIDE; 45 virtual void Destroy(JNIEnv* env, jobject obj) OVERRIDE;
46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() OVERRIDE; 46 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() OVERRIDE;
47 virtual WebContents* GetWebContents() const OVERRIDE; 47 virtual WebContents* GetWebContents() const OVERRIDE;
48 virtual ui::WindowAndroid* GetWindowAndroid() OVERRIDE; 48 virtual ui::WindowAndroid* GetWindowAndroid() OVERRIDE;
49 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; 49 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE;
50 virtual void OnWebPreferencesUpdated() OVERRIDE; 50 virtual void OnWebPreferencesUpdated() OVERRIDE;
51 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; 51 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE;
52 virtual void SelectText(const string16& text,
53 int selection_start_x,
54 int selection_start_y) OVERRIDE;
52 55
53 // -------------------------------------------------------------------------- 56 // --------------------------------------------------------------------------
54 // Methods called from Java via JNI 57 // Methods called from Java via JNI
55 // -------------------------------------------------------------------------- 58 // --------------------------------------------------------------------------
56 59
57 // Notifies the ContentViewCore that items were selected in the currently 60 // Notifies the ContentViewCore that items were selected in the currently
58 // showing select popup. 61 // showing select popup.
59 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); 62 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices);
60 63
61 void LoadUrl( 64 void LoadUrl(
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 ui::WindowAndroid* window_android_; 246 ui::WindowAndroid* window_android_;
244 247
245 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 248 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
246 }; 249 };
247 250
248 bool RegisterContentViewCore(JNIEnv* env); 251 bool RegisterContentViewCore(JNIEnv* env);
249 252
250 } // namespace content 253 } // namespace content
251 254
252 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 255 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698