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

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

Issue 513783002: Dispatch change event for input type=color when colorpicker is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac test fix Created 6 years, 3 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
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 { 637 {
638 ASSERT(element); 638 ASSERT(element);
639 if (!isHTMLInputElement(*element)) 639 if (!isHTMLInputElement(*element))
640 return; 640 return;
641 Color color; 641 Color color;
642 if (!color.setFromString(colorValue)) 642 if (!color.setFromString(colorValue))
643 return; 643 return;
644 toHTMLInputElement(*element).selectColorInColorChooser(color); 644 toHTMLInputElement(*element).selectColorInColorChooser(color);
645 } 645 }
646 646
647 void Internals::endColorChooser(Element* element)
648 {
649 ASSERT(element);
650 if (!isHTMLInputElement(*element))
651 return;
652 toHTMLInputElement(*element).endColorChooser();
653 }
654
647 bool Internals::hasAutofocusRequest(Document* document) 655 bool Internals::hasAutofocusRequest(Document* document)
648 { 656 {
649 if (!document) 657 if (!document)
650 document = contextDocument(); 658 document = contextDocument();
651 return document->autofocusElement(); 659 return document->autofocusElement();
652 } 660 }
653 661
654 bool Internals::hasAutofocusRequest() 662 bool Internals::hasAutofocusRequest()
655 { 663 {
656 return hasAutofocusRequest(0); 664 return hasAutofocusRequest(0);
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState ); 2266 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState );
2259 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); 2267 toHTMLPlugInElement(element)->setUsePlaceholderContent(true);
2260 } 2268 }
2261 2269
2262 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState) 2270 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState)
2263 { 2271 {
2264 return new InternalsIterator; 2272 return new InternalsIterator;
2265 } 2273 }
2266 2274
2267 } // namespace blink 2275 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698