| 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 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2327 { | 2327 { |
| 2328 frame()->page()->focusController().setFocused(focused); | 2328 frame()->page()->focusController().setFocused(focused); |
| 2329 } | 2329 } |
| 2330 | 2330 |
| 2331 void Internals::setInitialFocus(bool reverse) | 2331 void Internals::setInitialFocus(bool reverse) |
| 2332 { | 2332 { |
| 2333 frame()->document()->setFocusedElement(nullptr); | 2333 frame()->document()->setFocusedElement(nullptr); |
| 2334 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); | 2334 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); |
| 2335 } | 2335 } |
| 2336 | 2336 |
| 2337 bool Internals::ignoreLayoutWithPendingStylesheets(Document* document) |
| 2338 { |
| 2339 ASSERT(document); |
| 2340 return document->ignoreLayoutWithPendingStylesheets(); |
| 2341 } |
| 2342 |
| 2337 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) | 2343 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
| 2338 { | 2344 { |
| 2339 networkStateNotifier().setTestUpdatesOnly(testOnly); | 2345 networkStateNotifier().setTestUpdatesOnly(testOnly); |
| 2340 } | 2346 } |
| 2341 | 2347 |
| 2342 void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc
eptionState) | 2348 void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc
eptionState) |
| 2343 { | 2349 { |
| 2344 WebConnectionType webtype; | 2350 WebConnectionType webtype; |
| 2345 if (type == "cellular") { | 2351 if (type == "cellular") { |
| 2346 webtype = ConnectionTypeCellular; | 2352 webtype = ConnectionTypeCellular; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2475 | 2481 |
| 2476 return animator->setScrollbarsVisibleForTesting(visible); | 2482 return animator->setScrollbarsVisibleForTesting(visible); |
| 2477 } | 2483 } |
| 2478 | 2484 |
| 2479 void Internals::forceRestrictIFramePermissions() | 2485 void Internals::forceRestrictIFramePermissions() |
| 2480 { | 2486 { |
| 2481 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); | 2487 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); |
| 2482 } | 2488 } |
| 2483 | 2489 |
| 2484 } // namespace blink | 2490 } // namespace blink |
| OLD | NEW |