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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class ChromeClientImpl; | 36 class ChromeClientImpl; |
37 class DateTimeChooserClient; | 37 class DateTimeChooserClient; |
38 class WebString; | 38 class WebString; |
39 class WebViewClient; | 39 class WebViewClient; |
40 | 40 |
41 class ExternalDateTimeChooser final : public DateTimeChooser { | 41 class ExternalDateTimeChooser final : public DateTimeChooser { |
42 public: | 42 public: |
43 static RawPtr<ExternalDateTimeChooser> create(ChromeClientImpl*, WebViewClie
nt*, DateTimeChooserClient*, const DateTimeChooserParameters&); | 43 static ExternalDateTimeChooser* create(ChromeClientImpl*, WebViewClient*, Da
teTimeChooserClient*, 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*, WebViewClient*, const DateTimeCh
ooserParameters&); | 54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); |
55 | 55 |
56 // DateTimeChooser function: | 56 // DateTimeChooser function: |
57 void endChooser() override; | 57 void endChooser() override; |
58 AXObject* rootAXObject() override; | 58 AXObject* rootAXObject() override; |
59 | 59 |
60 Member<DateTimeChooserClient> m_client; | 60 Member<DateTimeChooserClient> m_client; |
61 }; | 61 }; |
62 | 62 |
63 } | 63 } |
64 #endif | 64 #endif |
65 | 65 |
66 #endif | 66 #endif |
OLD | NEW |