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 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2440 String Internals::unscopeableAttribute() | 2440 String Internals::unscopeableAttribute() |
2441 { | 2441 { |
2442 return "unscopeableAttribute"; | 2442 return "unscopeableAttribute"; |
2443 } | 2443 } |
2444 | 2444 |
2445 String Internals::unscopeableMethod() | 2445 String Internals::unscopeableMethod() |
2446 { | 2446 { |
2447 return "unscopeableMethod"; | 2447 return "unscopeableMethod"; |
2448 } | 2448 } |
2449 | 2449 |
2450 ClientRectList* Internals::focusRingRects(Element* element) | 2450 ClientRectList* Internals::outlineRects(Element* element) |
2451 { | 2451 { |
2452 Vector<LayoutRect> rects; | 2452 Vector<LayoutRect> rects; |
2453 if (element && element->layoutObject()) | 2453 if (element && element->layoutObject()) |
2454 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); | 2454 element->layoutObject()->addOutlineRects(rects, LayoutPoint()); |
2455 return ClientRectList::create(rects); | 2455 return ClientRectList::create(rects); |
2456 } | 2456 } |
2457 | 2457 |
2458 void Internals::setCapsLockState(bool enabled) | 2458 void Internals::setCapsLockState(bool enabled) |
2459 { | 2459 { |
2460 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? | 2460 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? |
2461 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); | 2461 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); |
2462 } | 2462 } |
2463 | 2463 |
2464 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) | 2464 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) |
(...skipping 13 matching lines...) Expand all Loading... |
2478 | 2478 |
2479 return animator->setScrollbarsVisibleForTesting(visible); | 2479 return animator->setScrollbarsVisibleForTesting(visible); |
2480 } | 2480 } |
2481 | 2481 |
2482 void Internals::forceRestrictIFramePermissions() | 2482 void Internals::forceRestrictIFramePermissions() |
2483 { | 2483 { |
2484 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); | 2484 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); |
2485 } | 2485 } |
2486 | 2486 |
2487 } // namespace blink | 2487 } // namespace blink |
OLD | NEW |