| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 return HTMLDivElement::willRespondToMouseClickEvents(); | 93 return HTMLDivElement::willRespondToMouseClickEvents(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void PickerIndicatorElement::didChooseValue(const String& value) | 96 void PickerIndicatorElement::didChooseValue(const String& value) |
| 97 { | 97 { |
| 98 if (!m_pickerIndicatorOwner) | 98 if (!m_pickerIndicatorOwner) |
| 99 return; | 99 return; |
| 100 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value); | 100 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void PickerIndicatorElement::didChooseValue(double value) |
| 104 { |
| 105 if (!m_pickerIndicatorOwner) |
| 106 return; |
| 107 m_pickerIndicatorOwner->pickerIndicatorChooseValue(value); |
| 108 } |
| 109 |
| 103 void PickerIndicatorElement::didEndChooser() | 110 void PickerIndicatorElement::didEndChooser() |
| 104 { | 111 { |
| 105 m_chooser.clear(); | 112 m_chooser.clear(); |
| 106 } | 113 } |
| 107 | 114 |
| 108 void PickerIndicatorElement::openPopup() | 115 void PickerIndicatorElement::openPopup() |
| 109 { | 116 { |
| 110 if (m_chooser) | 117 if (m_chooser) |
| 111 return; | 118 return; |
| 112 if (!document().page()) | 119 if (!document().page()) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 133 } | 140 } |
| 134 | 141 |
| 135 bool PickerIndicatorElement::isPickerIndicatorElement() const | 142 bool PickerIndicatorElement::isPickerIndicatorElement() const |
| 136 { | 143 { |
| 137 return true; | 144 return true; |
| 138 } | 145 } |
| 139 | 146 |
| 140 } | 147 } |
| 141 | 148 |
| 142 #endif | 149 #endif |
| OLD | NEW |