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

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyPageHolder.cpp

Issue 1888773003: Merge DragClientImpl into core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing file. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 FrameLoaderClient* frameLoaderClient, 59 FrameLoaderClient* frameLoaderClient,
60 FrameSettingOverrideFunction settingOverrider) 60 FrameSettingOverrideFunction settingOverrider)
61 { 61 {
62 Page::PageClients pageClients; 62 Page::PageClients pageClients;
63 if (!pageClientsArgument) { 63 if (!pageClientsArgument) {
64 fillWithEmptyClients(pageClients); 64 fillWithEmptyClients(pageClients);
65 } else { 65 } else {
66 pageClients.chromeClient = pageClientsArgument->chromeClient; 66 pageClients.chromeClient = pageClientsArgument->chromeClient;
67 pageClients.contextMenuClient = pageClientsArgument->contextMenuClient; 67 pageClients.contextMenuClient = pageClientsArgument->contextMenuClient;
68 pageClients.editorClient = pageClientsArgument->editorClient; 68 pageClients.editorClient = pageClientsArgument->editorClient;
69 pageClients.dragClient = pageClientsArgument->dragClient;
70 pageClients.spellCheckerClient = pageClientsArgument->spellCheckerClient ; 69 pageClients.spellCheckerClient = pageClientsArgument->spellCheckerClient ;
71 } 70 }
72 m_page = Page::create(pageClients); 71 m_page = Page::create(pageClients);
73 Settings& settings = m_page->settings(); 72 Settings& settings = m_page->settings();
74 // FIXME: http://crbug.com/363843. This needs to find a better way to 73 // FIXME: http://crbug.com/363843. This needs to find a better way to
75 // not create graphics layers. 74 // not create graphics layers.
76 settings.setAcceleratedCompositingEnabled(false); 75 settings.setAcceleratedCompositingEnabled(false);
77 if (settingOverrider) 76 if (settingOverrider)
78 (*settingOverrider)(settings); 77 (*settingOverrider)(settings);
79 78
(...skipping 29 matching lines...) Expand all
109 { 108 {
110 return *m_frame->view(); 109 return *m_frame->view();
111 } 110 }
112 111
113 Document& DummyPageHolder::document() const 112 Document& DummyPageHolder::document() const
114 { 113 {
115 return *m_frame->domWindow()->document(); 114 return *m_frame->domWindow()->document();
116 } 115 }
117 116
118 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698