OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
3 * Rights Reserved. | 3 * Rights Reserved. |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 continue; | 430 continue; |
431 LocalFrame* localFrame = toLocalFrame(frame); | 431 LocalFrame* localFrame = toLocalFrame(frame); |
432 if (localFrame->loader() | 432 if (localFrame->loader() |
433 .stateMachine() | 433 .stateMachine() |
434 ->committedFirstRealDocumentLoad()) { | 434 ->committedFirstRealDocumentLoad()) { |
435 // Forcibly instantiate WindowProxy. | 435 // Forcibly instantiate WindowProxy. |
436 localFrame->script().windowProxy(DOMWrapperWorld::mainWorld()); | 436 localFrame->script().windowProxy(DOMWrapperWorld::mainWorld()); |
437 } | 437 } |
438 } | 438 } |
439 } break; | 439 } break; |
| 440 case SettingsDelegate::MediaControlsChange: |
| 441 for (Frame* frame = mainFrame(); frame; |
| 442 frame = frame->tree().traverseNext()) { |
| 443 if (!frame->isLocalFrame()) |
| 444 continue; |
| 445 Document* doc = toLocalFrame(frame)->document(); |
| 446 if (doc) |
| 447 HTMLMediaElement::onMediaControlsEnabledChange(doc); |
| 448 } |
| 449 break; |
440 } | 450 } |
441 } | 451 } |
442 | 452 |
443 void Page::updateAcceleratedCompositingSettings() { | 453 void Page::updateAcceleratedCompositingSettings() { |
444 for (Frame* frame = mainFrame(); frame; | 454 for (Frame* frame = mainFrame(); frame; |
445 frame = frame->tree().traverseNext()) { | 455 frame = frame->tree().traverseNext()) { |
446 if (!frame->isLocalFrame()) | 456 if (!frame->isLocalFrame()) |
447 continue; | 457 continue; |
448 if (FrameView* view = toLocalFrame(frame)->view()) | 458 if (FrameView* view = toLocalFrame(frame)->view()) |
449 view->updateAcceleratedCompositingSettings(); | 459 view->updateAcceleratedCompositingSettings(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 : chromeClient(nullptr), | 551 : chromeClient(nullptr), |
542 contextMenuClient(nullptr), | 552 contextMenuClient(nullptr), |
543 editorClient(nullptr), | 553 editorClient(nullptr), |
544 spellCheckerClient(nullptr) {} | 554 spellCheckerClient(nullptr) {} |
545 | 555 |
546 Page::PageClients::~PageClients() {} | 556 Page::PageClients::~PageClients() {} |
547 | 557 |
548 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 558 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
549 | 559 |
550 } // namespace blink | 560 } // namespace blink |
OLD | NEW |