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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 PluginData* Page::pluginData() const | 259 PluginData* Page::pluginData() const |
260 { | 260 { |
261 if (!mainFrame()->isLocalFrame() | 261 if (!mainFrame()->isLocalFrame() |
262 || !deprecatedLocalMainFrame()->loader().allowPlugins(NotAboutToInstanti
atePlugin)) | 262 || !deprecatedLocalMainFrame()->loader().allowPlugins(NotAboutToInstanti
atePlugin)) |
263 return nullptr; | 263 return nullptr; |
264 if (!m_pluginData) | 264 if (!m_pluginData) |
265 m_pluginData = PluginData::create(this); | 265 m_pluginData = PluginData::create(this); |
266 return m_pluginData.get(); | 266 return m_pluginData.get(); |
267 } | 267 } |
268 | 268 |
269 void Page::unmarkAllTextMatches() | |
270 { | |
271 if (!mainFrame()) | |
272 return; | |
273 | |
274 Frame* frame = mainFrame(); | |
275 do { | |
276 if (frame->isLocalFrame()) | |
277 toLocalFrame(frame)->document()->markers().removeMarkers(DocumentMar
ker::TextMatch); | |
278 frame = frame->tree().traverseNextWithWrap(false); | |
279 } while (frame); | |
280 } | |
281 | |
282 void Page::setValidationMessageClient(ValidationMessageClient* client) | 269 void Page::setValidationMessageClient(ValidationMessageClient* client) |
283 { | 270 { |
284 m_validationMessageClient = client; | 271 m_validationMessageClient = client; |
285 } | 272 } |
286 | 273 |
287 void Page::setDefersLoading(bool defers) | 274 void Page::setDefersLoading(bool defers) |
288 { | 275 { |
289 if (defers == m_defersLoading) | 276 if (defers == m_defersLoading) |
290 return; | 277 return; |
291 | 278 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 { | 563 { |
577 } | 564 } |
578 | 565 |
579 Page::PageClients::~PageClients() | 566 Page::PageClients::~PageClients() |
580 { | 567 { |
581 } | 568 } |
582 | 569 |
583 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 570 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
584 | 571 |
585 } // namespace blink | 572 } // namespace blink |
OLD | NEW |