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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 387113003: Add a content API to create a message channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nit Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool animate); 88 bool animate);
89 void ShowImeIfNeeded(JNIEnv* env, jobject obj); 89 void ShowImeIfNeeded(JNIEnv* env, jobject obj);
90 void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj); 90 void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj);
91 void SelectWordAroundCaret(JNIEnv* env, jobject obj); 91 void SelectWordAroundCaret(JNIEnv* env, jobject obj);
92 92
93 void InsertCSS(JNIEnv* env, jobject jobj, jstring jcss); 93 void InsertCSS(JNIEnv* env, jobject jobj, jstring jcss);
94 void EvaluateJavaScript(JNIEnv* env, 94 void EvaluateJavaScript(JNIEnv* env,
95 jobject obj, 95 jobject obj,
96 jstring script, 96 jstring script,
97 jobject callback); 97 jobject callback);
98 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
99 jstring message, jstring source_origin, jstring target_origin);
100 private: 98 private:
101 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 99 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
102 100
103 WebContents* web_contents_; 101 WebContents* web_contents_;
104 NavigationControllerAndroid navigation_controller_; 102 NavigationControllerAndroid navigation_controller_;
105 base::android::ScopedJavaGlobalRef<jobject> obj_; 103 base::android::ScopedJavaGlobalRef<jobject> obj_;
106 104
107 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 105 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
108 }; 106 };
109 107
110 } // namespace content 108 } // namespace content
111 109
112 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/message_port_service.cc ('k') | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698