Chromium Code Reviews| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 for (LocalFrame* frame = (*it)->mainFrame(); frame; frame = frame->tree( ).traverseNext()) | 90 for (LocalFrame* frame = (*it)->mainFrame(); frame; frame = frame->tree( ).traverseNext()) |
| 91 frames.append(frame); | 91 frames.append(frame); |
| 92 InspectorInstrumentation::networkStateChanged(*it, online); | 92 InspectorInstrumentation::networkStateChanged(*it, online); |
| 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() | |
| 101 { | |
| 102 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext()) { | |
|
jochen (gone - plz use gerrit)
2014/05/21 09:20:11
no need for { }
mlamouri (slow - plz ping)
2014/05/21 16:27:55
Done.
| |
| 103 frame->domWindow()->dispatchEvent(Event::create(EventTypeNames::language change)); | |
|
jochen (gone - plz use gerrit)
2014/05/21 09:20:11
js execution could change the frames, so you shoul
mlamouri (slow - plz ping)
2014/05/21 16:27:55
Done.
| |
| 104 } | |
| 105 } | |
| 106 | |
| 100 float deviceScaleFactor(LocalFrame* frame) | 107 float deviceScaleFactor(LocalFrame* frame) |
| 101 { | 108 { |
| 102 if (!frame) | 109 if (!frame) |
| 103 return 1; | 110 return 1; |
| 104 Page* page = frame->page(); | 111 Page* page = frame->page(); |
| 105 if (!page) | 112 if (!page) |
| 106 return 1; | 113 return 1; |
| 107 return page->deviceScaleFactor(); | 114 return page->deviceScaleFactor(); |
| 108 } | 115 } |
| 109 | 116 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 584 , spellCheckerClient(0) | 591 , spellCheckerClient(0) |
| 585 , storageClient(0) | 592 , storageClient(0) |
| 586 { | 593 { |
| 587 } | 594 } |
| 588 | 595 |
| 589 Page::PageClients::~PageClients() | 596 Page::PageClients::~PageClients() |
| 590 { | 597 { |
| 591 } | 598 } |
| 592 | 599 |
| 593 } // namespace WebCore | 600 } // namespace WebCore |
| OLD | NEW |