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

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

Issue 1177043016: [SP] Add a drawing recorder before painting caps lock indicator in password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests and caps lock override hook for Internals. Created 5 years, 6 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698