| 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 #include "core/html/forms/DateTimeChooser.h" | 29 #include "core/html/forms/DateTimeChooser.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class ChromeClientImpl; | 33 class ChromeClient; |
| 34 class DateTimeChooserClient; | 34 class DateTimeChooserClient; |
| 35 class WebString; | 35 class WebString; |
| 36 class WebViewClient; | 36 class WebViewClient; |
| 37 | 37 |
| 38 class ExternalDateTimeChooser final : public DateTimeChooser { | 38 class ExternalDateTimeChooser final : public DateTimeChooser { |
| 39 public: | 39 public: |
| 40 static ExternalDateTimeChooser* Create(ChromeClientImpl*, | 40 static ExternalDateTimeChooser* Create(ChromeClient*, |
| 41 WebViewClient*, | 41 WebViewClient*, |
| 42 DateTimeChooserClient*, | 42 DateTimeChooserClient*, |
| 43 const DateTimeChooserParameters&); | 43 const DateTimeChooserParameters&); |
| 44 ~ExternalDateTimeChooser() override; | 44 ~ExternalDateTimeChooser() override; |
| 45 DECLARE_VIRTUAL_TRACE(); | 45 DECLARE_VIRTUAL_TRACE(); |
| 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(DateTimeChooserClient*); | 53 ExternalDateTimeChooser(DateTimeChooserClient*); |
| 54 bool OpenDateTimeChooser(ChromeClientImpl*, | 54 bool OpenDateTimeChooser(ChromeClient*, |
| 55 WebViewClient*, | 55 WebViewClient*, |
| 56 const DateTimeChooserParameters&); | 56 const DateTimeChooserParameters&); |
| 57 | 57 |
| 58 // DateTimeChooser function: | 58 // DateTimeChooser function: |
| 59 void EndChooser() override; | 59 void EndChooser() override; |
| 60 AXObject* RootAXObject() override; | 60 AXObject* RootAXObject() override; |
| 61 | 61 |
| 62 Member<DateTimeChooserClient> client_; | 62 Member<DateTimeChooserClient> client_; |
| 63 }; | 63 }; |
| 64 } | 64 } |
| 65 #endif | 65 #endif |
| OLD | NEW |