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

Side by Side Diff: Source/core/page/Page.cpp

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have the flag influence automatic track selection 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 case SettingsDelegate::ViewportRuleChange: 493 case SettingsDelegate::ViewportRuleChange:
494 { 494 {
495 if (!mainFrame() || !mainFrame()->isLocalFrame()) 495 if (!mainFrame() || !mainFrame()->isLocalFrame())
496 break; 496 break;
497 Document* doc = toLocalFrame(mainFrame())->document(); 497 Document* doc = toLocalFrame(mainFrame())->document();
498 if (!doc || !doc->styleResolver()) 498 if (!doc || !doc->styleResolver())
499 break; 499 break;
500 doc->styleResolver()->viewportStyleResolver()->collectViewportRules( ); 500 doc->styleResolver()->viewportStyleResolver()->collectViewportRules( );
501 } 501 }
502 break; 502 break;
503 case SettingsDelegate::TextTracksVisibilityChange:
504 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
505 if (frame->isLocalFrame()) {
506 toLocalFrame(frame)->document()->textTracksVisibilityChanged(
507 m_settings->textTracksEnabled());
508 }
509 }
510 break;
503 } 511 }
504 } 512 }
505 513
506 void Page::updateAcceleratedCompositingSettings() 514 void Page::updateAcceleratedCompositingSettings()
507 { 515 {
508 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 516 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
509 if (!frame->isLocalFrame()) 517 if (!frame->isLocalFrame())
510 continue; 518 continue;
511 if (FrameView* view = toLocalFrame(frame)->view()) 519 if (FrameView* view = toLocalFrame(frame)->view())
512 view->updateAcceleratedCompositingSettings(); 520 view->updateAcceleratedCompositingSettings();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 , dragClient(nullptr) 605 , dragClient(nullptr)
598 , spellCheckerClient(nullptr) 606 , spellCheckerClient(nullptr)
599 { 607 {
600 } 608 }
601 609
602 Page::PageClients::~PageClients() 610 Page::PageClients::~PageClients()
603 { 611 {
604 } 612 }
605 613
606 } // namespace blink 614 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698