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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 , m_dragCaretController(DragCaretController::create()) | 114 , m_dragCaretController(DragCaretController::create()) |
115 , m_dragController(DragController::create(this, pageClients.dragClient)) | 115 , m_dragController(DragController::create(this, pageClients.dragClient)) |
116 , m_focusController(FocusController::create(this)) | 116 , m_focusController(FocusController::create(this)) |
117 , m_contextMenuController(ContextMenuController::create(this, pageClients.co
ntextMenuClient)) | 117 , m_contextMenuController(ContextMenuController::create(this, pageClients.co
ntextMenuClient)) |
118 , m_inspectorController(InspectorController::create(this, pageClients.inspec
torClient)) | 118 , m_inspectorController(InspectorController::create(this, pageClients.inspec
torClient)) |
119 , m_pointerLockController(PointerLockController::create(this)) | 119 , m_pointerLockController(PointerLockController::create(this)) |
120 , m_historyController(adoptPtr(new HistoryController(this))) | 120 , m_historyController(adoptPtr(new HistoryController(this))) |
121 , m_undoStack(UndoStack::create()) | 121 , m_undoStack(UndoStack::create()) |
122 , m_backForwardClient(pageClients.backForwardClient) | 122 , m_backForwardClient(pageClients.backForwardClient) |
123 , m_editorClient(pageClients.editorClient) | 123 , m_editorClient(pageClients.editorClient) |
124 , m_validationMessageClient(0) | |
125 , m_spellCheckerClient(pageClients.spellCheckerClient) | 124 , m_spellCheckerClient(pageClients.spellCheckerClient) |
126 , m_storageClient(pageClients.storageClient) | 125 , m_storageClient(pageClients.storageClient) |
127 , m_subframeCount(0) | 126 , m_subframeCount(0) |
128 , m_openedByDOM(false) | 127 , m_openedByDOM(false) |
129 , m_tabKeyCyclesThroughElements(true) | 128 , m_tabKeyCyclesThroughElements(true) |
130 , m_defersLoading(false) | 129 , m_defersLoading(false) |
131 , m_pageScaleFactor(1) | 130 , m_pageScaleFactor(1) |
132 , m_deviceScaleFactor(1) | 131 , m_deviceScaleFactor(1) |
133 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) | 132 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) |
134 , m_visibilityState(PageVisibilityStateVisible) | 133 , m_visibilityState(PageVisibilityStateVisible) |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 if (!mainFrame()) | 312 if (!mainFrame()) |
314 return; | 313 return; |
315 | 314 |
316 LocalFrame* frame = mainFrame(); | 315 LocalFrame* frame = mainFrame(); |
317 do { | 316 do { |
318 frame->document()->markers().removeMarkers(DocumentMarker::TextMatch); | 317 frame->document()->markers().removeMarkers(DocumentMarker::TextMatch); |
319 frame = incrementFrame(frame, true, false); | 318 frame = incrementFrame(frame, true, false); |
320 } while (frame); | 319 } while (frame); |
321 } | 320 } |
322 | 321 |
| 322 void Page::setValidationMessageClient(PassOwnPtr<ValidationMessageClient> client
) |
| 323 { |
| 324 m_validationMessageClient = client; |
| 325 } |
| 326 |
323 void Page::setDefersLoading(bool defers) | 327 void Page::setDefersLoading(bool defers) |
324 { | 328 { |
325 if (defers == m_defersLoading) | 329 if (defers == m_defersLoading) |
326 return; | 330 return; |
327 | 331 |
328 m_defersLoading = defers; | 332 m_defersLoading = defers; |
329 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) | 333 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) |
330 frame->loader().setDefersLoading(defers); | 334 frame->loader().setDefersLoading(defers); |
331 } | 335 } |
332 | 336 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 , spellCheckerClient(0) | 546 , spellCheckerClient(0) |
543 , storageClient(0) | 547 , storageClient(0) |
544 { | 548 { |
545 } | 549 } |
546 | 550 |
547 Page::PageClients::~PageClients() | 551 Page::PageClients::~PageClients() |
548 { | 552 { |
549 } | 553 } |
550 | 554 |
551 } // namespace WebCore | 555 } // namespace WebCore |
OLD | NEW |