OLD | NEW |
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 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2323 { | 2323 { |
2324 if (!element->isPluginElement()) { | 2324 if (!element->isPluginElement()) { |
2325 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2325 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2326 return; | 2326 return; |
2327 } | 2327 } |
2328 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2328 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2329 } | 2329 } |
2330 | 2330 |
2331 void Internals::forceBlinkGCWithoutV8GC() | 2331 void Internals::forceBlinkGCWithoutV8GC() |
2332 { | 2332 { |
2333 ThreadState::current()->setGCState(ThreadState::GCScheduledForTesting); | 2333 ThreadState::current()->setGCState(ThreadState::FullGCScheduled); |
2334 } | 2334 } |
2335 | 2335 |
2336 String Internals::selectedHTMLForClipboard() | 2336 String Internals::selectedHTMLForClipboard() |
2337 { | 2337 { |
2338 return frame()->selection().selectedHTMLForClipboard(); | 2338 return frame()->selection().selectedHTMLForClipboard(); |
2339 } | 2339 } |
2340 | 2340 |
2341 String Internals::selectedTextForClipboard() | 2341 String Internals::selectedTextForClipboard() |
2342 { | 2342 { |
2343 return frame()->selection().selectedTextForClipboard(); | 2343 return frame()->selection().selectedTextForClipboard(); |
2344 } | 2344 } |
2345 | 2345 |
2346 void Internals::setVisualViewportOffset(int x, int y) | 2346 void Internals::setVisualViewportOffset(int x, int y) |
2347 { | 2347 { |
2348 frame()->host()->pinchViewport().setLocation(FloatPoint(x, y)); | 2348 frame()->host()->pinchViewport().setLocation(FloatPoint(x, y)); |
2349 } | 2349 } |
2350 | 2350 |
2351 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) | 2351 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) |
2352 { | 2352 { |
2353 return new InternalsIterationSource(); | 2353 return new InternalsIterationSource(); |
2354 } | 2354 } |
2355 | 2355 |
2356 bool Internals::isUseCounted(Document* document, int useCounterId) | 2356 bool Internals::isUseCounted(Document* document, int useCounterId) |
2357 { | 2357 { |
2358 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); | 2358 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); |
2359 } | 2359 } |
2360 | 2360 |
2361 | 2361 |
2362 } // namespace blink | 2362 } // namespace blink |
OLD | NEW |