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 12 matching lines...) Expand all Loading... |
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 blink { | 32 namespace blink { |
33 class DateTimeChooserClient; | |
34 } | |
35 | |
36 namespace blink { | |
37 | 33 |
38 class ChromeClientImpl; | 34 class ChromeClientImpl; |
| 35 class DateTimeChooserClient; |
39 class WebString; | 36 class WebString; |
40 class WebViewClient; | 37 class WebViewClient; |
41 | 38 |
42 class ExternalDateTimeChooser FINAL : public blink::DateTimeChooser { | 39 class ExternalDateTimeChooser FINAL : public DateTimeChooser { |
43 public: | 40 public: |
44 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, blink::DateTimeChooserClient*, const blink::DateTimeChooser
Parameters&); | 41 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, DateTimeChooserClient*, const DateTimeChooserParameters&); |
45 virtual ~ExternalDateTimeChooser(); | 42 virtual ~ExternalDateTimeChooser(); |
46 | 43 |
47 // The following functions are for DateTimeChooserCompletion. | 44 // The following functions are for DateTimeChooserCompletion. |
48 void didChooseValue(const WebString&); | 45 void didChooseValue(const WebString&); |
49 void didChooseValue(double); | 46 void didChooseValue(double); |
50 void didCancelChooser(); | 47 void didCancelChooser(); |
51 | 48 |
52 private: | 49 private: |
53 ExternalDateTimeChooser(blink::DateTimeChooserClient*); | 50 ExternalDateTimeChooser(DateTimeChooserClient*); |
54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const blink::Dat
eTimeChooserParameters&); | 51 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); |
55 | 52 |
56 // DateTimeChooser function: | 53 // DateTimeChooser function: |
57 virtual void endChooser() OVERRIDE; | 54 virtual void endChooser() OVERRIDE; |
58 | 55 |
59 blink::DateTimeChooserClient* m_client; | 56 DateTimeChooserClient* m_client; |
60 }; | 57 }; |
61 | 58 |
62 } | 59 } |
63 #endif | 60 #endif |
64 | 61 |
65 #endif | 62 #endif |
OLD | NEW |