| 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 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2381 { | 2381 { |
| 2382 frame()->page()->focusController().setFocused(focused); | 2382 frame()->page()->focusController().setFocused(focused); |
| 2383 } | 2383 } |
| 2384 | 2384 |
| 2385 void Internals::setInitialFocus(bool reverse) | 2385 void Internals::setInitialFocus(bool reverse) |
| 2386 { | 2386 { |
| 2387 frame()->document()->clearFocusedElement(); | 2387 frame()->document()->clearFocusedElement(); |
| 2388 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); | 2388 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); |
| 2389 } | 2389 } |
| 2390 | 2390 |
| 2391 void Internals::setSequentialFocusNavigationStartingPoint(Node* node) |
| 2392 { |
| 2393 frame()->document()->setSequentialFocusNavigationStartingPoint(node); |
| 2394 } |
| 2395 |
| 2391 bool Internals::ignoreLayoutWithPendingStylesheets(Document* document) | 2396 bool Internals::ignoreLayoutWithPendingStylesheets(Document* document) |
| 2392 { | 2397 { |
| 2393 ASSERT(document); | 2398 ASSERT(document); |
| 2394 return document->ignoreLayoutWithPendingStylesheets(); | 2399 return document->ignoreLayoutWithPendingStylesheets(); |
| 2395 } | 2400 } |
| 2396 | 2401 |
| 2397 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) | 2402 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
| 2398 { | 2403 { |
| 2399 networkStateNotifier().setTestUpdatesOnly(testOnly); | 2404 networkStateNotifier().setTestUpdatesOnly(testOnly); |
| 2400 } | 2405 } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2582 } | 2587 } |
| 2583 | 2588 |
| 2584 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2589 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2585 { | 2590 { |
| 2586 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2591 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2587 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2592 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2588 return String(); | 2593 return String(); |
| 2589 } | 2594 } |
| 2590 | 2595 |
| 2591 } // namespace blink | 2596 } // namespace blink |
| OLD | NEW |