| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #include "core/frame/FrameView.h" | 82 #include "core/frame/FrameView.h" |
| 83 #include "core/frame/LocalFrame.h" | 83 #include "core/frame/LocalFrame.h" |
| 84 #include "core/frame/Settings.h" | 84 #include "core/frame/Settings.h" |
| 85 #include "core/html/HTMLIFrameElement.h" | 85 #include "core/html/HTMLIFrameElement.h" |
| 86 #include "core/html/HTMLInputElement.h" | 86 #include "core/html/HTMLInputElement.h" |
| 87 #include "core/html/HTMLMediaElement.h" | 87 #include "core/html/HTMLMediaElement.h" |
| 88 #include "core/html/HTMLSelectElement.h" | 88 #include "core/html/HTMLSelectElement.h" |
| 89 #include "core/html/HTMLTextAreaElement.h" | 89 #include "core/html/HTMLTextAreaElement.h" |
| 90 #include "core/html/forms/FormController.h" | 90 #include "core/html/forms/FormController.h" |
| 91 #include "core/html/shadow/HTMLContentElement.h" | 91 #include "core/html/shadow/HTMLContentElement.h" |
| 92 #include "core/html/shadow/ShadowElementNames.h" | |
| 93 #include "core/html/shadow/TextControlInnerElements.h" | |
| 94 #include "core/inspector/InspectorClient.h" | 92 #include "core/inspector/InspectorClient.h" |
| 95 #include "core/inspector/InspectorConsoleAgent.h" | 93 #include "core/inspector/InspectorConsoleAgent.h" |
| 96 #include "core/inspector/InspectorController.h" | 94 #include "core/inspector/InspectorController.h" |
| 97 #include "core/inspector/InspectorCounters.h" | 95 #include "core/inspector/InspectorCounters.h" |
| 98 #include "core/inspector/InspectorFrontendChannel.h" | 96 #include "core/inspector/InspectorFrontendChannel.h" |
| 99 #include "core/inspector/InspectorInstrumentation.h" | 97 #include "core/inspector/InspectorInstrumentation.h" |
| 100 #include "core/inspector/InspectorOverlay.h" | 98 #include "core/inspector/InspectorOverlay.h" |
| 101 #include "core/inspector/InstrumentingAgents.h" | 99 #include "core/inspector/InstrumentingAgents.h" |
| 102 #include "core/loader/FrameLoader.h" | 100 #include "core/loader/FrameLoader.h" |
| 103 #include "core/loader/HistoryItem.h" | 101 #include "core/loader/HistoryItem.h" |
| (...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2382 { | 2380 { |
| 2383 return promise.then(AddOneFunction::create(context)); | 2381 return promise.then(AddOneFunction::create(context)); |
| 2384 } | 2382 } |
| 2385 | 2383 |
| 2386 void Internals::trace(Visitor* visitor) | 2384 void Internals::trace(Visitor* visitor) |
| 2387 { | 2385 { |
| 2388 visitor->trace(m_runtimeFlags); | 2386 visitor->trace(m_runtimeFlags); |
| 2389 visitor->trace(m_profilers); | 2387 visitor->trace(m_profilers); |
| 2390 } | 2388 } |
| 2391 | 2389 |
| 2392 void Internals::startSpeechInput(Element* element) | |
| 2393 { | |
| 2394 HTMLInputElement* input = toHTMLInputElement(element); | |
| 2395 if (!input->isSpeechEnabled()) | |
| 2396 return; | |
| 2397 | |
| 2398 InputFieldSpeechButtonElement* speechButton = toInputFieldSpeechButtonElemen
t(input->userAgentShadowRoot()->getElementById(ShadowElementNames::speechButton(
))); | |
| 2399 if (speechButton) | |
| 2400 speechButton->startSpeechInput(); | |
| 2401 } | 2390 } |
| 2402 | |
| 2403 void Internals::setValueForUser(Element* element, const String& value) | |
| 2404 { | |
| 2405 toHTMLInputElement(element)->setValueForUser(value); | |
| 2406 } | |
| 2407 | |
| 2408 } | |
| OLD | NEW |