| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "MouseEvent.h" | 56 #include "MouseEvent.h" |
| 57 #include "Page.h" | 57 #include "Page.h" |
| 58 #include "RegularExpression.h" | 58 #include "RegularExpression.h" |
| 59 #include "RenderButton.h" | 59 #include "RenderButton.h" |
| 60 #include "RenderFileUploadControl.h" | 60 #include "RenderFileUploadControl.h" |
| 61 #include "RenderImage.h" | 61 #include "RenderImage.h" |
| 62 #include "RenderSlider.h" | 62 #include "RenderSlider.h" |
| 63 #include "RenderText.h" | 63 #include "RenderText.h" |
| 64 #include "RenderTextControlSingleLine.h" | 64 #include "RenderTextControlSingleLine.h" |
| 65 #include "RenderTheme.h" | 65 #include "RenderTheme.h" |
| 66 #include "RuntimeEnabledFeatures.h" |
| 66 #include "ScriptEventListener.h" | 67 #include "ScriptEventListener.h" |
| 67 #include "StepRange.h" | 68 #include "StepRange.h" |
| 68 #include "TextEvent.h" | 69 #include "TextEvent.h" |
| 69 #include "WheelEvent.h" | 70 #include "WheelEvent.h" |
| 70 #include <wtf/HashMap.h> | 71 #include <wtf/HashMap.h> |
| 71 #include <wtf/MathExtras.h> | 72 #include <wtf/MathExtras.h> |
| 72 #include <wtf/StdLibExtras.h> | 73 #include <wtf/StdLibExtras.h> |
| 73 #include <wtf/text/StringHash.h> | 74 #include <wtf/text/StringHash.h> |
| 74 | 75 |
| 75 using namespace std; | 76 using namespace std; |
| (...skipping 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2970 #if ENABLE(INPUT_SPEECH) | 2971 #if ENABLE(INPUT_SPEECH) |
| 2971 bool HTMLInputElement::isSpeechEnabled() const | 2972 bool HTMLInputElement::isSpeechEnabled() const |
| 2972 { | 2973 { |
| 2973 switch (inputType()) { | 2974 switch (inputType()) { |
| 2974 // FIXME: Add support for RANGE, EMAIL, URL, COLOR and DATE/TIME input types
. | 2975 // FIXME: Add support for RANGE, EMAIL, URL, COLOR and DATE/TIME input types
. |
| 2975 case NUMBER: | 2976 case NUMBER: |
| 2976 case PASSWORD: | 2977 case PASSWORD: |
| 2977 case SEARCH: | 2978 case SEARCH: |
| 2978 case TELEPHONE: | 2979 case TELEPHONE: |
| 2979 case TEXT: | 2980 case TEXT: |
| 2980 return hasAttribute(speechAttr); | 2981 return RuntimeEnabledFeatures::speechInputEnabled() && hasAttribute(spee
chAttr); |
| 2981 case BUTTON: | 2982 case BUTTON: |
| 2982 case CHECKBOX: | 2983 case CHECKBOX: |
| 2983 case COLOR: | 2984 case COLOR: |
| 2984 case DATE: | 2985 case DATE: |
| 2985 case DATETIME: | 2986 case DATETIME: |
| 2986 case DATETIMELOCAL: | 2987 case DATETIMELOCAL: |
| 2987 case EMAIL: | 2988 case EMAIL: |
| 2988 case FILE: | 2989 case FILE: |
| 2989 case HIDDEN: | 2990 case HIDDEN: |
| 2990 case IMAGE: | 2991 case IMAGE: |
| 2991 case ISINDEX: | 2992 case ISINDEX: |
| 2992 case MONTH: | 2993 case MONTH: |
| 2993 case RADIO: | 2994 case RADIO: |
| 2994 case RANGE: | 2995 case RANGE: |
| 2995 case RESET: | 2996 case RESET: |
| 2996 case SUBMIT: | 2997 case SUBMIT: |
| 2997 case TIME: | 2998 case TIME: |
| 2998 case URL: | 2999 case URL: |
| 2999 case WEEK: | 3000 case WEEK: |
| 3000 return false; | 3001 return false; |
| 3001 } | 3002 } |
| 3002 return false; | 3003 return false; |
| 3003 } | 3004 } |
| 3004 #endif | 3005 #endif |
| 3005 | 3006 |
| 3006 } // namespace | 3007 } // namespace |
| OLD | NEW |