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

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

Issue 425343002: [Android WebView] API to enable fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AwContentsClientGetVideoLoadingProgressViewTest Created 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "android_webview/native/aw_settings.h" 5 #include "android_webview/native/aw_settings.h"
6 6
7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" 7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h"
8 #include "android_webview/common/aw_content_client.h" 8 #include "android_webview/common/aw_content_client.h"
9 #include "android_webview/native/aw_contents.h" 9 #include "android_webview/native/aw_contents.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 web_prefs->experimental_webgl_enabled = 387 web_prefs->experimental_webgl_enabled =
388 web_prefs->experimental_webgl_enabled && 388 web_prefs->experimental_webgl_enabled &&
389 enable_supported_hardware_accelerated_features; 389 enable_supported_hardware_accelerated_features;
390 390
391 web_prefs->allow_displaying_insecure_content = 391 web_prefs->allow_displaying_insecure_content =
392 Java_AwSettings_getAllowDisplayingInsecureContentLocked(env, obj); 392 Java_AwSettings_getAllowDisplayingInsecureContentLocked(env, obj);
393 web_prefs->allow_running_insecure_content = 393 web_prefs->allow_running_insecure_content =
394 Java_AwSettings_getAllowRunningInsecureContentLocked(env, obj); 394 Java_AwSettings_getAllowRunningInsecureContentLocked(env, obj);
395 395
396 web_prefs->disallow_fullscreen_for_non_media_elements = true; 396 web_prefs->disallow_fullscreen_for_non_media_elements = true;
397 web_prefs->fullscreen_supported =
398 Java_AwSettings_getFullscreenSupportedLocked(env, obj);
397 } 399 }
398 400
399 static jlong Init(JNIEnv* env, 401 static jlong Init(JNIEnv* env,
400 jobject obj, 402 jobject obj,
401 jlong web_contents) { 403 jlong web_contents) {
402 AwSettings* settings = new AwSettings(env, obj, web_contents); 404 AwSettings* settings = new AwSettings(env, obj, web_contents);
403 return reinterpret_cast<intptr_t>(settings); 405 return reinterpret_cast<intptr_t>(settings);
404 } 406 }
405 407
406 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) { 408 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) {
407 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent()).Release(); 409 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent()).Release();
408 } 410 }
409 411
410 bool RegisterAwSettings(JNIEnv* env) { 412 bool RegisterAwSettings(JNIEnv* env) {
411 return RegisterNativesImpl(env); 413 return RegisterNativesImpl(env);
412 } 414 }
413 415
414 } // namespace android_webview 416 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698