OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/html/shadow/TextControlInnerElements.h" | 28 #include "core/html/shadow/TextControlInnerElements.h" |
29 | 29 |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "bindings/v8/ScriptController.h" | 31 #include "bindings/v8/ScriptController.h" |
32 #include "core/dom/BeforeTextInsertedEvent.h" | |
33 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
34 #include "core/dom/EventNames.h" | 33 #include "core/dom/EventNames.h" |
35 #include "core/dom/MouseEvent.h" | 34 #include "core/dom/MouseEvent.h" |
36 #include "core/dom/TextEvent.h" | 35 #include "core/dom/TextEvent.h" |
37 #include "core/dom/TextEventInputType.h" | 36 #include "core/dom/TextEventInputType.h" |
38 #include "core/html/HTMLInputElement.h" | 37 #include "core/html/HTMLInputElement.h" |
39 #include "core/html/HTMLTextAreaElement.h" | |
40 #include "core/page/EventHandler.h" | 38 #include "core/page/EventHandler.h" |
41 #include "core/page/Frame.h" | 39 #include "core/page/Frame.h" |
42 #include "core/page/Page.h" | |
43 #include "core/page/SpeechInput.h" | 40 #include "core/page/SpeechInput.h" |
44 #include "core/page/SpeechInputEvent.h" | 41 #include "core/page/SpeechInputEvent.h" |
45 #include "core/rendering/RenderSearchField.h" | 42 #include "core/rendering/RenderSearchField.h" |
46 #include "core/rendering/RenderTextControl.h" | 43 #include "core/rendering/RenderTextControl.h" |
47 #include "core/rendering/RenderView.h" | 44 #include "core/rendering/RenderView.h" |
48 #include "core/rendering/style/StyleInheritedData.h" | |
49 | 45 |
50 namespace WebCore { | 46 namespace WebCore { |
51 | 47 |
52 using namespace HTMLNames; | 48 using namespace HTMLNames; |
53 | 49 |
54 TextControlInnerContainer::TextControlInnerContainer(Document* document) | 50 TextControlInnerContainer::TextControlInnerContainer(Document* document) |
55 : HTMLDivElement(divTag, document) | 51 : HTMLDivElement(divTag, document) |
56 { | 52 { |
57 } | 53 } |
58 | 54 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 } | 434 } |
439 | 435 |
440 void InputFieldSpeechButtonElement::stopSpeechInput() | 436 void InputFieldSpeechButtonElement::stopSpeechInput() |
441 { | 437 { |
442 if (m_state == Recording) | 438 if (m_state == Recording) |
443 speechInput()->stopRecording(m_listenerId); | 439 speechInput()->stopRecording(m_listenerId); |
444 } | 440 } |
445 #endif // ENABLE(INPUT_SPEECH) | 441 #endif // ENABLE(INPUT_SPEECH) |
446 | 442 |
447 } | 443 } |
OLD | NEW |