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

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

Issue 649933006: Move PostMessageToFrame to WebContentsAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address code review Created 6 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool animate); 81 bool animate);
82 void ShowImeIfNeeded(JNIEnv* env, jobject obj); 82 void ShowImeIfNeeded(JNIEnv* env, jobject obj);
83 void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj); 83 void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj);
84 void SelectWordAroundCaret(JNIEnv* env, jobject obj); 84 void SelectWordAroundCaret(JNIEnv* env, jobject obj);
85 85
86 void InsertCSS(JNIEnv* env, jobject jobj, jstring jcss); 86 void InsertCSS(JNIEnv* env, jobject jobj, jstring jcss);
87 void EvaluateJavaScript(JNIEnv* env, 87 void EvaluateJavaScript(JNIEnv* env,
88 jobject obj, 88 jobject obj,
89 jstring script, 89 jstring script,
90 jobject callback); 90 jobject callback);
91 91 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
92 jstring message, jstring source_origin, jstring target_origin);
92 private: 93 private:
93 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 94 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
94 95
95 WebContents* web_contents_; 96 WebContents* web_contents_;
96 NavigationControllerAndroid navigation_controller_; 97 NavigationControllerAndroid navigation_controller_;
97 base::android::ScopedJavaGlobalRef<jobject> obj_; 98 base::android::ScopedJavaGlobalRef<jobject> obj_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 100 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
100 }; 101 };
101 102
102 } // namespace content 103 } // namespace content
103 104
104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.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