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

Side by Side Diff: sky/engine/web/WebSettingsImpl.cpp

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 int WebSettingsImpl::availableHoverTypes() const 443 int WebSettingsImpl::availableHoverTypes() const
444 { 444 {
445 return m_settings->availableHoverTypes(); 445 return m_settings->availableHoverTypes();
446 } 446 }
447 447
448 WebSettings::HoverType WebSettingsImpl::primaryHoverType() const 448 WebSettings::HoverType WebSettingsImpl::primaryHoverType() const
449 { 449 {
450 return static_cast<HoverType>(m_settings->primaryHoverType()); 450 return static_cast<HoverType>(m_settings->primaryHoverType());
451 } 451 }
452 452
453 bool WebSettingsImpl::viewportEnabled() const
454 {
455 return m_settings->viewportEnabled();
456 }
457
458 bool WebSettingsImpl::mockGestureTapHighlightsEnabled() const 453 bool WebSettingsImpl::mockGestureTapHighlightsEnabled() const
459 { 454 {
460 return m_settings->mockGestureTapHighlightsEnabled(); 455 return m_settings->mockGestureTapHighlightsEnabled();
461 } 456 }
462 457
463 bool WebSettingsImpl::mainFrameResizesAreOrientationChanges() const 458 bool WebSettingsImpl::mainFrameResizesAreOrientationChanges() const
464 { 459 {
465 return m_mainFrameResizesAreOrientationChanges; 460 return m_mainFrameResizesAreOrientationChanges;
466 } 461 }
467 462
468 bool WebSettingsImpl::shrinksViewportContentToFit() const 463 bool WebSettingsImpl::shrinksViewportContentToFit() const
469 { 464 {
470 return m_shrinksViewportContentToFit; 465 return m_shrinksViewportContentToFit;
471 } 466 }
472 467
473 void WebSettingsImpl::setShouldRespectImageOrientation(bool enabled) 468 void WebSettingsImpl::setShouldRespectImageOrientation(bool enabled)
474 { 469 {
475 m_settings->setShouldRespectImageOrientation(enabled); 470 m_settings->setShouldRespectImageOrientation(enabled);
476 } 471 }
477 472
478 void WebSettingsImpl::setMediaControlsOverlayPlayButtonEnabled(bool enabled) 473 void WebSettingsImpl::setMediaControlsOverlayPlayButtonEnabled(bool enabled)
479 { 474 {
480 } 475 }
481 476
482 void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required) 477 void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required)
483 { 478 {
484 m_settings->setMediaPlaybackRequiresUserGesture(required); 479 m_settings->setMediaPlaybackRequiresUserGesture(required);
485 } 480 }
486 481
487 void WebSettingsImpl::setViewportEnabled(bool enabled)
488 {
489 m_settings->setViewportEnabled(enabled);
490 }
491
492 void WebSettingsImpl::setViewportMetaEnabled(bool enabled)
493 {
494 m_settings->setViewportMetaEnabled(enabled);
495 }
496
497 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) 482 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled)
498 { 483 {
499 m_settings->setNavigateOnDragDrop(enabled); 484 m_settings->setNavigateOnDragDrop(enabled);
500 } 485 }
501 486
502 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) 487 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled)
503 { 488 {
504 m_settings->setAllowCustomScrollbarInMainFrame(enabled); 489 m_settings->setAllowCustomScrollbarInMainFrame(enabled);
505 } 490 }
506 491
(...skipping 16 matching lines...) Expand all
523 { 508 {
524 m_mainFrameResizesAreOrientationChanges = enabled; 509 m_mainFrameResizesAreOrientationChanges = enabled;
525 } 510 }
526 511
527 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) 512 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options)
528 { 513 {
529 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 514 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
530 } 515 }
531 516
532 } // namespace blink 517 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698