| 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 11 matching lines...) Expand all Loading... |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 23 * SUCH DAMAGE. | 23 * SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ExternalDateTimeChooser_h | 26 #ifndef ExternalDateTimeChooser_h |
| 27 #define ExternalDateTimeChooser_h | 27 #define ExternalDateTimeChooser_h |
| 28 | 28 |
| 29 #if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 29 #if !ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 30 #include "platform/DateTimeChooser.h" | 30 #include "platform/DateTimeChooser.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace blink { |
| 33 class DateTimeChooserClient; | 33 class DateTimeChooserClient; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class ChromeClientImpl; | 38 class ChromeClientImpl; |
| 39 class WebString; | 39 class WebString; |
| 40 class WebViewClient; | 40 class WebViewClient; |
| 41 | 41 |
| 42 class ExternalDateTimeChooser FINAL : public WebCore::DateTimeChooser { | 42 class ExternalDateTimeChooser FINAL : public blink::DateTimeChooser { |
| 43 public: | 43 public: |
| 44 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, WebCore::DateTimeChooserClient*, const WebCore::DateTimeCho
oserParameters&); | 44 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, blink::DateTimeChooserClient*, const blink::DateTimeChooser
Parameters&); |
| 45 virtual ~ExternalDateTimeChooser(); | 45 virtual ~ExternalDateTimeChooser(); |
| 46 | 46 |
| 47 // The following functions are for DateTimeChooserCompletion. | 47 // The following functions are for DateTimeChooserCompletion. |
| 48 void didChooseValue(const WebString&); | 48 void didChooseValue(const WebString&); |
| 49 void didChooseValue(double); | 49 void didChooseValue(double); |
| 50 void didCancelChooser(); | 50 void didCancelChooser(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 ExternalDateTimeChooser(WebCore::DateTimeChooserClient*); | 53 ExternalDateTimeChooser(blink::DateTimeChooserClient*); |
| 54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const WebCore::D
ateTimeChooserParameters&); | 54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const blink::Dat
eTimeChooserParameters&); |
| 55 | 55 |
| 56 // DateTimeChooser function: | 56 // DateTimeChooser function: |
| 57 virtual void endChooser() OVERRIDE; | 57 virtual void endChooser() OVERRIDE; |
| 58 | 58 |
| 59 WebCore::DateTimeChooserClient* m_client; | 59 blink::DateTimeChooserClient* m_client; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } | 62 } |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |