| 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 18 matching lines...) Expand all Loading... |
| 29 #if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 29 #if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 30 #include "core/html/forms/BaseClickableWithKeyInputType.h" | 30 #include "core/html/forms/BaseClickableWithKeyInputType.h" |
| 31 #include "core/html/forms/BaseDateAndTimeInputType.h" | 31 #include "core/html/forms/BaseDateAndTimeInputType.h" |
| 32 #include "core/platform/DateTimeChooser.h" | 32 #include "core/platform/DateTimeChooser.h" |
| 33 #include "core/platform/DateTimeChooserClient.h" | 33 #include "core/platform/DateTimeChooserClient.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class BaseChooserOnlyDateAndTimeInputType : public BaseDateAndTimeInputType, pub
lic DateTimeChooserClient { | 37 class BaseChooserOnlyDateAndTimeInputType : public BaseDateAndTimeInputType, pub
lic DateTimeChooserClient { |
| 38 protected: | 38 protected: |
| 39 BaseChooserOnlyDateAndTimeInputType(HTMLInputElement* element) : BaseDateAnd
TimeInputType(element) { } | 39 BaseChooserOnlyDateAndTimeInputType(HTMLInputElement& element) : BaseDateAnd
TimeInputType(element) { } |
| 40 virtual ~BaseChooserOnlyDateAndTimeInputType(); | 40 virtual ~BaseChooserOnlyDateAndTimeInputType(); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 void updateAppearance(); | 43 void updateAppearance(); |
| 44 void closeDateTimeChooser(); | 44 void closeDateTimeChooser(); |
| 45 | 45 |
| 46 // InputType functions: | 46 // InputType functions: |
| 47 virtual void createShadowSubtree() OVERRIDE; | 47 virtual void createShadowSubtree() OVERRIDE; |
| 48 virtual void detach() OVERRIDE; | 48 virtual void detach() OVERRIDE; |
| 49 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavi
or) OVERRIDE; | 49 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavi
or) OVERRIDE; |
| 50 virtual void handleDOMActivateEvent(Event*) OVERRIDE; | 50 virtual void handleDOMActivateEvent(Event*) OVERRIDE; |
| 51 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; | 51 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; |
| 52 virtual void handleKeypressEvent(KeyboardEvent*) OVERRIDE; | 52 virtual void handleKeypressEvent(KeyboardEvent*) OVERRIDE; |
| 53 virtual void handleKeyupEvent(KeyboardEvent*) OVERRIDE; | 53 virtual void handleKeyupEvent(KeyboardEvent*) OVERRIDE; |
| 54 virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE; | 54 virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE; |
| 55 | 55 |
| 56 // DateTimeChooserClient functions: | 56 // DateTimeChooserClient functions: |
| 57 virtual void didChooseValue(const String&) OVERRIDE; | 57 virtual void didChooseValue(const String&) OVERRIDE; |
| 58 virtual void didEndChooser() OVERRIDE; | 58 virtual void didEndChooser() OVERRIDE; |
| 59 | 59 |
| 60 RefPtr<DateTimeChooser> m_dateTimeChooser; | 60 RefPtr<DateTimeChooser> m_dateTimeChooser; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } | 63 } |
| 64 #endif | 64 #endif |
| 65 #endif | 65 #endif |
| OLD | NEW |