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

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

Issue 9192008: Hook up ContentViewCore.add/removeJavascriptInterface() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify ContentViewCoreImpl to use WebContentsImpl Created 8 years, 4 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_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 class GURL; 10 class GURL;
(...skipping 19 matching lines...) Expand all
30 class ContentViewCore { 30 class ContentViewCore {
31 public: 31 public:
32 virtual void Destroy(JNIEnv* env, jobject obj) = 0; 32 virtual void Destroy(JNIEnv* env, jobject obj) = 0;
33 33
34 static ContentViewCore* Create(JNIEnv* env, jobject obj, 34 static ContentViewCore* Create(JNIEnv* env, jobject obj,
35 WebContents* web_contents); 35 WebContents* web_contents);
36 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); 36 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj);
37 37
38 // -------------------------------------------------------------------------- 38 // --------------------------------------------------------------------------
39 // Public methods that call to Java via JNI 39 // Public methods that call to Java via JNI
40 // -------------------------------------------------------------------------- 40 // --------------------------------------------------------------------------
joth 2012/07/27 16:59:30 does anyone know why these are declared as public
Ted C 2012/07/27 17:11:47 I think when were originally defining the content_
Steve Block 2012/07/30 11:45:14 Done.
41 41
42 virtual void StartContentIntent(const GURL& content_url) = 0; 42 virtual void StartContentIntent(const GURL& content_url) = 0;
43 43
44 virtual void AddJavascriptInterface(
45 JNIEnv* env,
46 jobject obj,
47 jobject object,
48 jstring name,
49 jboolean allow_inherited_methods) = 0;
50 virtual void RemoveJavascriptInterface(JNIEnv* env, jobject obj,
51 jstring name) = 0;
44 protected: 52 protected:
45 virtual ~ContentViewCore() {}; 53 virtual ~ContentViewCore() {};
46 }; 54 };
47 55
48 }; // namespace content 56 }; // namespace content
49 57
50 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_VIEW_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698