| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/html/HTMLDivElement.h" | 32 #include "core/html/HTMLDivElement.h" |
| 33 #include "core/html/HTMLInputElement.h" | 33 #include "core/html/HTMLInputElement.h" |
| 34 #include "core/page/ChromeClient.h" | 34 #include "core/page/ChromeClient.h" |
| 35 #include "platform/UserGestureIndicator.h" | 35 #include "platform/UserGestureIndicator.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 ChooserOnlyTemporalInputTypeView::ChooserOnlyTemporalInputTypeView( | 39 ChooserOnlyTemporalInputTypeView::ChooserOnlyTemporalInputTypeView( |
| 40 HTMLInputElement& element, | 40 HTMLInputElement& element, |
| 41 BaseTemporalInputType& inputType) | 41 BaseTemporalInputType& inputType) |
| 42 : KeyboardClickableInputTypeView(element), m_inputType(inputType) { | 42 : KeyboardClickableInputTypeView(element), m_inputType(inputType) {} |
| 43 } | |
| 44 | 43 |
| 45 ChooserOnlyTemporalInputTypeView* ChooserOnlyTemporalInputTypeView::create( | 44 ChooserOnlyTemporalInputTypeView* ChooserOnlyTemporalInputTypeView::create( |
| 46 HTMLInputElement& element, | 45 HTMLInputElement& element, |
| 47 BaseTemporalInputType& inputType) { | 46 BaseTemporalInputType& inputType) { |
| 48 return new ChooserOnlyTemporalInputTypeView(element, inputType); | 47 return new ChooserOnlyTemporalInputTypeView(element, inputType); |
| 49 } | 48 } |
| 50 | 49 |
| 51 ChooserOnlyTemporalInputTypeView::~ChooserOnlyTemporalInputTypeView() { | 50 ChooserOnlyTemporalInputTypeView::~ChooserOnlyTemporalInputTypeView() { |
| 52 DCHECK(!m_dateTimeChooser); | 51 DCHECK(!m_dateTimeChooser); |
| 53 } | 52 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void ChooserOnlyTemporalInputTypeView::didEndChooser() { | 132 void ChooserOnlyTemporalInputTypeView::didEndChooser() { |
| 134 m_dateTimeChooser.clear(); | 133 m_dateTimeChooser.clear(); |
| 135 } | 134 } |
| 136 | 135 |
| 137 void ChooserOnlyTemporalInputTypeView::closeDateTimeChooser() { | 136 void ChooserOnlyTemporalInputTypeView::closeDateTimeChooser() { |
| 138 if (m_dateTimeChooser) | 137 if (m_dateTimeChooser) |
| 139 m_dateTimeChooser->endChooser(); | 138 m_dateTimeChooser->endChooser(); |
| 140 } | 139 } |
| 141 | 140 |
| 142 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |