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

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 22986033: [Android WebView] Add an API to toggle the JS navigator.online property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "android_webview/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
10 #include "android_webview/browser/in_process_view_renderer.h" 10 #include "android_webview/browser/in_process_view_renderer.h"
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 return reinterpret_cast<jint>(new AwPicture( 773 return reinterpret_cast<jint>(new AwPicture(
774 browser_view_renderer_->CapturePicture(width, height))); 774 browser_view_renderer_->CapturePicture(width, height)));
775 } 775 }
776 776
777 void AwContents::EnableOnNewPicture(JNIEnv* env, 777 void AwContents::EnableOnNewPicture(JNIEnv* env,
778 jobject obj, 778 jobject obj,
779 jboolean enabled) { 779 jboolean enabled) {
780 browser_view_renderer_->EnableOnNewPicture(enabled); 780 browser_view_renderer_->EnableOnNewPicture(enabled);
781 } 781 }
782 782
783 void AwContents::SetJsOnlineProperty(JNIEnv* env,
784 jobject obj,
785 jboolean network_up) {
786 render_view_host_ext_->SetJsOnlineProperty(network_up);
787 }
788
783 } // namespace android_webview 789 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698