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

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

Issue 1001333003: Introduce window.internals.selected{Html,Text}ForClipboard() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-03-18T10:45:03 Created 5 years, 9 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 752c2a67b5461a7269dcfa3ae325600a96b4bb30..49a053b3a2d1f861fb0f0f7f1e0ab4beb2f235b9 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2316,6 +2316,16 @@ void Internals::forceBlinkGCWithoutV8GC()
ThreadState::current()->setGCState(ThreadState::GCScheduledForTesting);
}
+String Internals::selectedHTMLForClipboard()
+{
+ return frame()->selection().selectedHTMLForClipboard();
+}
+
+String Internals::selectedTextForClipboard()
+{
+ return frame()->selection().selectedTextForClipboard();
+}
+
ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, ExceptionState&)
{
return new InternalsIterationSource();
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698