Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 String Internals::unscopeableAttribute() 2448 String Internals::unscopeableAttribute()
2449 { 2449 {
2450 return "unscopeableAttribute"; 2450 return "unscopeableAttribute";
2451 } 2451 }
2452 2452
2453 String Internals::unscopeableMethod() 2453 String Internals::unscopeableMethod()
2454 { 2454 {
2455 return "unscopeableMethod"; 2455 return "unscopeableMethod";
2456 } 2456 }
2457 2457
2458 ClientRectList* Internals::focusRingRects(Element* element) 2458 ClientRectList* Internals::outlineRects(Element* element)
2459 { 2459 {
2460 Vector<LayoutRect> rects; 2460 Vector<LayoutRect> rects;
2461 if (element && element->layoutObject()) 2461 if (element && element->layoutObject())
2462 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); 2462 element->layoutObject()->addOutlineRects(rects, LayoutPoint());
2463 return ClientRectList::create(rects); 2463 return ClientRectList::create(rects);
2464 } 2464 }
2465 2465
2466 void Internals::setCapsLockState(bool enabled) 2466 void Internals::setCapsLockState(bool enabled)
2467 { 2467 {
2468 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? 2468 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
2469 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off); 2469 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off);
2470 } 2470 }
2471 2471
2472 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible) 2472 bool Internals::setScrollbarVisibilityInScrollableArea(Node* node, bool visible)
(...skipping 13 matching lines...) Expand all
2486 2486
2487 return animator->setScrollbarsVisibleForTesting(visible); 2487 return animator->setScrollbarsVisibleForTesting(visible);
2488 } 2488 }
2489 2489
2490 void Internals::forceRestrictIFramePermissions() 2490 void Internals::forceRestrictIFramePermissions()
2491 { 2491 {
2492 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); 2492 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
2493 } 2493 }
2494 2494
2495 } // namespace blink 2495 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698