Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1193)

Unified Diff: Source/core/testing/DummyPageHolder.cpp

Issue 357603003: Add functions searching a word boundary without VisualPosition to HTMLTextFormControlElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/DummyPageHolder.cpp
diff --git a/Source/core/testing/DummyPageHolder.cpp b/Source/core/testing/DummyPageHolder.cpp
index 811336dac688d5585b97a28a3cb9afd57ee32ce6..8c44bfd69df72808d02d65f4b6ec8c359f386e47 100644
--- a/Source/core/testing/DummyPageHolder.cpp
+++ b/Source/core/testing/DummyPageHolder.cpp
@@ -39,14 +39,25 @@
namespace WebCore {
-PassOwnPtr<DummyPageHolder> DummyPageHolder::create(const IntSize& initialViewSize)
+PassOwnPtr<DummyPageHolder> DummyPageHolder::create(const IntSize& initialViewSize, Page::PageClients* pageClients)
{
- return adoptPtr(new DummyPageHolder(initialViewSize));
+ return adoptPtr(new DummyPageHolder(initialViewSize, pageClients));
}
-DummyPageHolder::DummyPageHolder(const IntSize& initialViewSize)
+DummyPageHolder::DummyPageHolder(const IntSize& initialViewSize, Page::PageClients* pageClients)
{
- fillWithEmptyClients(m_pageClients);
+ if (!pageClients) {
+ fillWithEmptyClients(m_pageClients);
+ } else {
+ m_pageClients.chromeClient = pageClients->chromeClient;
+ m_pageClients.contextMenuClient = pageClients->contextMenuClient;
+ m_pageClients.editorClient = pageClients->editorClient;
+ m_pageClients.dragClient = pageClients->dragClient;
+ m_pageClients.inspectorClient = pageClients->inspectorClient;
+ m_pageClients.backForwardClient = pageClients->backForwardClient;
+ m_pageClients.spellCheckerClient = pageClients->spellCheckerClient;
+ m_pageClients.storageClient = pageClients->storageClient;
+ }
m_page = adoptPtrWillBeNoop(new Page(m_pageClients));
Settings& settings = m_page->settings();
// FIXME: http://crbug.com/363843. This needs to find a better way to
« Source/core/html/HTMLTextFormControlElement.cpp ('K') | « Source/core/testing/DummyPageHolder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698