| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType() | 41 BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType() |
| 42 { | 42 { |
| 43 closeDateTimeChooser(); | 43 closeDateTimeChooser(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) | 46 void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) |
| 47 { | 47 { |
| 48 if (element().isDisabledOrReadOnly() || !element().renderer() || !UserGestur
eIndicator::processingUserGesture() || element().hasOpenShadowRoot()) | 48 if (element().isDisabledOrReadOnly() || !element().layoutObject() || !UserGe
stureIndicator::processingUserGesture() || element().hasOpenShadowRoot()) |
| 49 return; | 49 return; |
| 50 | 50 |
| 51 if (m_dateTimeChooser) | 51 if (m_dateTimeChooser) |
| 52 return; | 52 return; |
| 53 if (!element().document().isActive()) | 53 if (!element().document().isActive()) |
| 54 return; | 54 return; |
| 55 DateTimeChooserParameters parameters; | 55 DateTimeChooserParameters parameters; |
| 56 if (!element().setupDateTimeChooserParameters(parameters)) | 56 if (!element().setupDateTimeChooserParameters(parameters)) |
| 57 return; | 57 return; |
| 58 m_dateTimeChooser = element().document().frameHost()->chrome().openDateTimeC
hooser(this, parameters); | 58 m_dateTimeChooser = element().document().frameHost()->chrome().openDateTimeC
hooser(this, parameters); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 143 } |
| 144 | 144 |
| 145 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents) | 145 void BaseChooserOnlyDateAndTimeInputType::accessKeyAction(bool sendMouseEvents) |
| 146 { | 146 { |
| 147 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents); | 147 BaseDateAndTimeInputType::accessKeyAction(sendMouseEvents); |
| 148 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents); | 148 BaseClickableWithKeyInputType::accessKeyAction(element(), sendMouseEvents); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } | 151 } |
| 152 #endif | 152 #endif |
| OLD | NEW |