| OLD | NEW |
| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 | 94 |
| 95 AtomicString eventName = online ? EventTypeNames::online : EventTypeNames::o
ffline; | 95 AtomicString eventName = online ? EventTypeNames::online : EventTypeNames::o
ffline; |
| 96 for (unsigned i = 0; i < frames.size(); i++) | 96 for (unsigned i = 0; i < frames.size(); i++) |
| 97 frames[i]->domWindow()->dispatchEvent(Event::create(eventName)); | 97 frames[i]->domWindow()->dispatchEvent(Event::create(eventName)); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void Page::acceptLanguagesChanged() | 100 void Page::acceptLanguagesChanged() |
| 101 { | 101 { |
| 102 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) { | 102 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) { |
| 103 frame->domWindow()->dispatchEvent(Event::create(EventTypeNames::language
change)); | 103 frame->domWindow()->acceptLanguagesChanged(); |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 float deviceScaleFactor(LocalFrame* frame) | 107 float deviceScaleFactor(LocalFrame* frame) |
| 108 { | 108 { |
| 109 if (!frame) | 109 if (!frame) |
| 110 return 1; | 110 return 1; |
| 111 Page* page = frame->page(); | 111 Page* page = frame->page(); |
| 112 if (!page) | 112 if (!page) |
| 113 return 1; | 113 return 1; |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 , spellCheckerClient(0) | 591 , spellCheckerClient(0) |
| 592 , storageClient(0) | 592 , storageClient(0) |
| 593 { | 593 { |
| 594 } | 594 } |
| 595 | 595 |
| 596 Page::PageClients::~PageClients() | 596 Page::PageClients::~PageClients() |
| 597 { | 597 { |
| 598 } | 598 } |
| 599 | 599 |
| 600 } // namespace WebCore | 600 } // namespace WebCore |
| OLD | NEW |