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

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

Issue 1095913002: Fix window.open issue in Document mode on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GuestViewBase delegate method Created 5 years, 7 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 #include "content/browser/web_contents/web_contents_android.h" 5 #include "content/browser/web_contents/web_contents_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 jboolean WebContentsAndroid::IsIncognito(JNIEnv* env, jobject obj) { 235 jboolean WebContentsAndroid::IsIncognito(JNIEnv* env, jobject obj) {
236 return web_contents_->GetBrowserContext()->IsOffTheRecord(); 236 return web_contents_->GetBrowserContext()->IsOffTheRecord();
237 } 237 }
238 238
239 void WebContentsAndroid::ResumeResponseDeferredAtStart(JNIEnv* env, 239 void WebContentsAndroid::ResumeResponseDeferredAtStart(JNIEnv* env,
240 jobject obj) { 240 jobject obj) {
241 static_cast<WebContentsImpl*>(web_contents_)->ResumeResponseDeferredAtStart(); 241 static_cast<WebContentsImpl*>(web_contents_)->ResumeResponseDeferredAtStart();
242 } 242 }
243 243
244 void WebContentsAndroid::ResumeLoadingCreatedWebContents(JNIEnv* env,
245 jobject obj) {
246 web_contents_->ResumeLoadingCreatedWebContents();
247 }
248
244 void WebContentsAndroid::SetHasPendingNavigationTransitionForTesting( 249 void WebContentsAndroid::SetHasPendingNavigationTransitionForTesting(
245 JNIEnv* env, 250 JNIEnv* env,
246 jobject obj) { 251 jobject obj) {
247 base::CommandLine::ForCurrentProcess()->AppendSwitch( 252 base::CommandLine::ForCurrentProcess()->AppendSwitch(
248 switches::kEnableExperimentalWebPlatformFeatures); 253 switches::kEnableExperimentalWebPlatformFeatures);
249 RenderFrameHost* frame = 254 RenderFrameHost* frame =
250 static_cast<WebContentsImpl*>(web_contents_)->GetMainFrame(); 255 static_cast<WebContentsImpl*>(web_contents_)->GetMainFrame();
251 BrowserThread::PostTask( 256 BrowserThread::PostTask(
252 BrowserThread::IO, 257 BrowserThread::IO,
253 FROM_HERE, 258 FROM_HERE,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 ScopedJavaGlobalRef<jobject> j_callback; 566 ScopedJavaGlobalRef<jobject> j_callback;
562 j_callback.Reset(env, callback); 567 j_callback.Reset(env, callback);
563 WebContentsImpl::AXTreeSnapshotCallback snapshot_callback = 568 WebContentsImpl::AXTreeSnapshotCallback snapshot_callback =
564 base::Bind(&AXTreeSnapshotCallback, j_callback); 569 base::Bind(&AXTreeSnapshotCallback, j_callback);
565 570
566 static_cast<WebContentsImpl*>(web_contents_)->RequestAXTreeSnapshot( 571 static_cast<WebContentsImpl*>(web_contents_)->RequestAXTreeSnapshot(
567 snapshot_callback); 572 snapshot_callback);
568 } 573 }
569 574
570 } // namespace content 575 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698