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

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: Implemented colorChooserClient support 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
« 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 { 638 {
639 ASSERT(element); 639 ASSERT(element);
640 if (!isHTMLInputElement(*element)) 640 if (!isHTMLInputElement(*element))
641 return; 641 return;
642 Color color; 642 Color color;
643 if (!color.setFromString(colorValue)) 643 if (!color.setFromString(colorValue))
644 return; 644 return;
645 toHTMLInputElement(*element).selectColorInColorChooser(color); 645 toHTMLInputElement(*element).selectColorInColorChooser(color);
646 } 646 }
647 647
648 void Internals::endColorChooser(Element* element)
649 {
650 ASSERT(element);
651 if (!isHTMLInputElement(*element))
652 return;
653 toHTMLInputElement(*element).endColorChooser();
654 }
655
648 bool Internals::hasAutofocusRequest(Document* document) 656 bool Internals::hasAutofocusRequest(Document* document)
649 { 657 {
650 if (!document) 658 if (!document)
651 document = contextDocument(); 659 document = contextDocument();
652 return document->autofocusElement(); 660 return document->autofocusElement();
653 } 661 }
654 662
655 bool Internals::hasAutofocusRequest() 663 bool Internals::hasAutofocusRequest()
656 { 664 {
657 return hasAutofocusRequest(0); 665 return hasAutofocusRequest(0);
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 2293
2286 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); 2294 toHTMLPlugInElement(element)->setUsePlaceholderContent(true);
2287 } 2295 }
2288 2296
2289 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState) 2297 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState)
2290 { 2298 {
2291 return new InternalsIterator; 2299 return new InternalsIterator;
2292 } 2300 }
2293 2301
2294 } // namespace blink 2302 } // 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