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 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2468 element->layoutObject()->addOutlineRects(rects, LayoutPoint()); | 2468 element->layoutObject()->addOutlineRects(rects, LayoutPoint()); |
2469 return ClientRectList::create(rects); | 2469 return ClientRectList::create(rects); |
2470 } | 2470 } |
2471 | 2471 |
2472 void Internals::setCapsLockState(bool enabled) | 2472 void Internals::setCapsLockState(bool enabled) |
2473 { | 2473 { |
2474 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? | 2474 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? |
2475 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); | 2475 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); |
2476 } | 2476 } |
2477 | 2477 |
| 2478 void Internals::setSelectionPaintingWithoutSelectionGapsEnabled(bool enabled) |
| 2479 { |
| 2480 RuntimeEnabledFeatures::setSelectionPaintingWithoutSelectionGapsEnabled(enab
led); |
| 2481 } |
| 2482 |
2478 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) | 2483 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) |
2479 { | 2484 { |
2480 LayoutObject* layoutObject = node->layoutObject(); | 2485 LayoutObject* layoutObject = node->layoutObject(); |
2481 if (!layoutObject) | 2486 if (!layoutObject) |
2482 return false; | 2487 return false; |
2483 DeprecatedPaintLayer* layer = layoutObject->enclosingLayer(); | 2488 DeprecatedPaintLayer* layer = layoutObject->enclosingLayer(); |
2484 if (!layer) | 2489 if (!layer) |
2485 return false; | 2490 return false; |
2486 ScrollableArea* scrollableArea = layer->scrollableArea(); | 2491 ScrollableArea* scrollableArea = layer->scrollableArea(); |
2487 if (!scrollableArea) | 2492 if (!scrollableArea) |
2488 return false; | 2493 return false; |
2489 ScrollAnimator* animator = layer->scrollableArea()->scrollAnimator(); | 2494 ScrollAnimator* animator = layer->scrollableArea()->scrollAnimator(); |
2490 if (!animator) | 2495 if (!animator) |
2491 return false; | 2496 return false; |
2492 | 2497 |
2493 return animator->setScrollbarsVisibleForTesting(visible); | 2498 return animator->setScrollbarsVisibleForTesting(visible); |
2494 } | 2499 } |
2495 | 2500 |
2496 void Internals::forceRestrictIFramePermissions() | 2501 void Internals::forceRestrictIFramePermissions() |
2497 { | 2502 { |
2498 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); | 2503 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); |
2499 } | 2504 } |
2500 | 2505 |
2501 } // namespace blink | 2506 } // namespace blink |
OLD | NEW |