| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 : chromeClient(nullptr), | 552 : chromeClient(nullptr), |
| 543 contextMenuClient(nullptr), | 553 contextMenuClient(nullptr), |
| 544 editorClient(nullptr), | 554 editorClient(nullptr), |
| 545 spellCheckerClient(nullptr) {} | 555 spellCheckerClient(nullptr) {} |
| 546 | 556 |
| 547 Page::PageClients::~PageClients() {} | 557 Page::PageClients::~PageClients() {} |
| 548 | 558 |
| 549 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 559 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 550 | 560 |
| 551 } // namespace blink | 561 } // namespace blink |
| OLD | NEW |