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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2309 return; 2309 return;
2310 } 2310 }
2311 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options)); 2311 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options));
2312 } 2312 }
2313 2313
2314 void Internals::forceBlinkGCWithoutV8GC() 2314 void Internals::forceBlinkGCWithoutV8GC()
2315 { 2315 {
2316 ThreadState::current()->setGCState(ThreadState::GCScheduledForTesting); 2316 ThreadState::current()->setGCState(ThreadState::GCScheduledForTesting);
2317 } 2317 }
2318 2318
2319 String Internals::selectedHTMLForClipboard()
2320 {
2321 return frame()->selection().selectedHTMLForClipboard();
2322 }
2323
2324 String Internals::selectedTextForClipboard()
2325 {
2326 return frame()->selection().selectedTextForClipboard();
2327 }
2328
2319 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&) 2329 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&)
2320 { 2330 {
2321 return new InternalsIterationSource(); 2331 return new InternalsIterationSource();
2322 } 2332 }
2323 2333
2324 } // namespace blink 2334 } // namespace blink
OLDNEW
« 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