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

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: rebase 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 ShowPastePopup(int x, int y) OVERRIDE;
52 53
53 // -------------------------------------------------------------------------- 54 // --------------------------------------------------------------------------
54 // Methods called from Java via JNI 55 // Methods called from Java via JNI
55 // -------------------------------------------------------------------------- 56 // --------------------------------------------------------------------------
56 57
57 // Notifies the ContentViewCore that items were selected in the currently 58 // Notifies the ContentViewCore that items were selected in the currently
58 // showing select popup. 59 // showing select popup.
59 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices); 60 void SelectPopupMenuItems(JNIEnv* env, jobject obj, jintArray indices);
60 61
61 void LoadUrl( 62 void LoadUrl(
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 ui::WindowAndroid* window_android_; 257 ui::WindowAndroid* window_android_;
257 258
258 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 259 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
259 }; 260 };
260 261
261 bool RegisterContentViewCore(JNIEnv* env); 262 bool RegisterContentViewCore(JNIEnv* env);
262 263
263 } // namespace content 264 } // namespace content
264 265
265 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 266 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698