Chromium Code Reviews| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 #include "core/testing/InternalSettings.h" | 123 #include "core/testing/InternalSettings.h" |
| 124 #include "core/testing/LayerRect.h" | 124 #include "core/testing/LayerRect.h" |
| 125 #include "core/testing/LayerRectList.h" | 125 #include "core/testing/LayerRectList.h" |
| 126 #include "core/testing/PluginPlaceholderOptions.h" | 126 #include "core/testing/PluginPlaceholderOptions.h" |
| 127 #include "core/testing/PrivateScriptTest.h" | 127 #include "core/testing/PrivateScriptTest.h" |
| 128 #include "core/testing/TypeConversions.h" | 128 #include "core/testing/TypeConversions.h" |
| 129 #include "core/testing/UnionTypesTest.h" | 129 #include "core/testing/UnionTypesTest.h" |
| 130 #include "core/workers/WorkerThread.h" | 130 #include "core/workers/WorkerThread.h" |
| 131 #include "platform/Cursor.h" | 131 #include "platform/Cursor.h" |
| 132 #include "platform/Language.h" | 132 #include "platform/Language.h" |
| 133 #include "platform/PlatformKeyboardEvent.h" | |
| 133 #include "platform/RuntimeEnabledFeatures.h" | 134 #include "platform/RuntimeEnabledFeatures.h" |
| 134 #include "platform/TraceEvent.h" | 135 #include "platform/TraceEvent.h" |
| 135 #include "platform/geometry/IntRect.h" | 136 #include "platform/geometry/IntRect.h" |
| 136 #include "platform/geometry/LayoutRect.h" | 137 #include "platform/geometry/LayoutRect.h" |
| 137 #include "platform/graphics/GraphicsLayer.h" | 138 #include "platform/graphics/GraphicsLayer.h" |
| 138 #include "platform/graphics/filters/FilterOperation.h" | 139 #include "platform/graphics/filters/FilterOperation.h" |
| 139 #include "platform/graphics/filters/FilterOperations.h" | 140 #include "platform/graphics/filters/FilterOperations.h" |
| 140 #include "platform/heap/Handle.h" | 141 #include "platform/heap/Handle.h" |
| 141 #include "platform/weborigin/SchemeRegistry.h" | 142 #include "platform/weborigin/SchemeRegistry.h" |
| 142 #include "public/platform/Platform.h" | 143 #include "public/platform/Platform.h" |
| (...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2429 } | 2430 } |
| 2430 | 2431 |
| 2431 ClientRectList* Internals::focusRingRects(Element* element) | 2432 ClientRectList* Internals::focusRingRects(Element* element) |
| 2432 { | 2433 { |
| 2433 Vector<LayoutRect> rects; | 2434 Vector<LayoutRect> rects; |
| 2434 if (element && element->layoutObject()) | 2435 if (element && element->layoutObject()) |
| 2435 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); | 2436 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); |
| 2436 return ClientRectList::create(rects); | 2437 return ClientRectList::create(rects); |
| 2437 } | 2438 } |
| 2438 | 2439 |
| 2440 void Internals::setCurrentCapsLockState(bool enabled) | |
| 2441 { | |
| 2442 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? | |
|
leviw_travelin_and_unemployed
2015/06/18 22:33:48
In the past we've had issues with this sort of sta
wkorman
2015/06/18 22:49:38
Good catch, added to Internals::resetToConsistentS
| |
| 2443 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off); | |
| 2444 } | |
| 2445 | |
| 2439 } // namespace blink | 2446 } // namespace blink |
| OLD | NEW |