OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 updateAppearance(); | 108 updateAppearance(); |
109 } | 109 } |
110 | 110 |
111 void BaseChooserOnlyDateAndTimeInputType::detach() | 111 void BaseChooserOnlyDateAndTimeInputType::detach() |
112 { | 112 { |
113 closeDateTimeChooser(); | 113 closeDateTimeChooser(); |
114 } | 114 } |
115 | 115 |
116 void BaseChooserOnlyDateAndTimeInputType::didChooseValue(const String& value) | 116 void BaseChooserOnlyDateAndTimeInputType::didChooseValue(const String& value) |
117 { | 117 { |
118 element()->setValue(value, DispatchChangeEvent); | 118 element()->setValue(value, DispatchInputAndChangeEvent); |
119 } | 119 } |
120 | 120 |
121 void BaseChooserOnlyDateAndTimeInputType::didEndChooser() | 121 void BaseChooserOnlyDateAndTimeInputType::didEndChooser() |
122 { | 122 { |
123 m_dateTimeChooser.clear(); | 123 m_dateTimeChooser.clear(); |
124 } | 124 } |
125 | 125 |
126 void BaseChooserOnlyDateAndTimeInputType::closeDateTimeChooser() | 126 void BaseChooserOnlyDateAndTimeInputType::closeDateTimeChooser() |
127 { | 127 { |
128 if (m_dateTimeChooser) | 128 if (m_dateTimeChooser) |
(...skipping 16 matching lines...) Expand all Loading... |
145 } | 145 } |
146 | 146 |
147 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents) | 147 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents) |
148 { | 148 { |
149 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents); | 149 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents); |
150 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents); | 150 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents); |
151 } | 151 } |
152 | 152 |
153 } | 153 } |
154 #endif | 154 #endif |
OLD | NEW |