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

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

Issue 1785953002: Ignore viewport meta tags when Request Desktop Site is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change loop style Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" 8 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h"
9 #include "android_webview/common/aw_content_client.h" 9 #include "android_webview/common/aw_content_client.h"
10 #include "android_webview/native/aw_contents.h" 10 #include "android_webview/native/aw_contents.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 prefs->use_subpixel_positioning = params.subpixel_positioning; 42 prefs->use_subpixel_positioning = params.subpixel_positioning;
43 prefs->hinting = params.hinting; 43 prefs->hinting = params.hinting;
44 prefs->use_autohinter = params.autohinter; 44 prefs->use_autohinter = params.autohinter;
45 prefs->use_bitmaps = params.use_bitmaps; 45 prefs->use_bitmaps = params.use_bitmaps;
46 prefs->subpixel_rendering = params.subpixel_rendering; 46 prefs->subpixel_rendering = params.subpixel_rendering;
47 } 47 }
48 48
49 void PopulateFixedWebPreferences(WebPreferences* web_prefs) { 49 void PopulateFixedWebPreferences(WebPreferences* web_prefs) {
50 web_prefs->shrinks_standalone_images_to_fit = false; 50 web_prefs->shrinks_standalone_images_to_fit = false;
51 web_prefs->should_clear_document_background = false; 51 web_prefs->should_clear_document_background = false;
52 web_prefs->viewport_meta_enabled = true;
52 } 53 }
53 54
54 const void* const kAwSettingsUserDataKey = &kAwSettingsUserDataKey; 55 const void* const kAwSettingsUserDataKey = &kAwSettingsUserDataKey;
55 56
56 }; // namespace 57 }; // namespace
57 58
58 class AwSettingsUserData : public base::SupportsUserData::Data { 59 class AwSettingsUserData : public base::SupportsUserData::Data {
59 public: 60 public:
60 explicit AwSettingsUserData(AwSettings* ptr) : settings_(ptr) {} 61 explicit AwSettingsUserData(AwSettings* ptr) : settings_(ptr) {}
61 62
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 JNIEnv* env, 456 JNIEnv* env,
456 const JavaParamRef<jclass>& clazz) { 457 const JavaParamRef<jclass>& clazz) {
457 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent()); 458 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent());
458 } 459 }
459 460
460 bool RegisterAwSettings(JNIEnv* env) { 461 bool RegisterAwSettings(JNIEnv* env) {
461 return RegisterNativesImpl(env); 462 return RegisterNativesImpl(env);
462 } 463 }
463 464
464 } // namespace android_webview 465 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698