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 class ChromeClientImpl; | 34 class ChromeClientImpl; |
35 class DateTimeChooserClient; | 35 class DateTimeChooserClient; |
36 class WebString; | 36 class WebString; |
37 class WebViewClient; | 37 class WebViewClient; |
38 | 38 |
39 class ExternalDateTimeChooser final : public DateTimeChooser { | 39 class ExternalDateTimeChooser final : public DateTimeChooser { |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, DateTimeChooserClient*, const DateTimeChooserParameters&); | 41 static PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> create(ChromeClientIm
pl*, WebViewClient*, DateTimeChooserClient*, const DateTimeChooserParameters&); |
42 ~ExternalDateTimeChooser() override; | 42 ~ExternalDateTimeChooser() override; |
| 43 DECLARE_VIRTUAL_TRACE(); |
43 | 44 |
44 // The following functions are for DateTimeChooserCompletion. | 45 // The following functions are for DateTimeChooserCompletion. |
45 void didChooseValue(const WebString&); | 46 void didChooseValue(const WebString&); |
46 void didChooseValue(double); | 47 void didChooseValue(double); |
47 void didCancelChooser(); | 48 void didCancelChooser(); |
48 | 49 |
49 private: | 50 private: |
50 ExternalDateTimeChooser(DateTimeChooserClient*); | 51 ExternalDateTimeChooser(DateTimeChooserClient*); |
51 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); | 52 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); |
52 | 53 |
53 // DateTimeChooser function: | 54 // DateTimeChooser function: |
54 void endChooser() override; | 55 void endChooser() override; |
55 AXObject* rootAXObject() override; | 56 AXObject* rootAXObject() override; |
56 | 57 |
57 DateTimeChooserClient* m_client; | 58 RawPtrWillBeMember<DateTimeChooserClient> m_client; |
58 }; | 59 }; |
59 | 60 |
60 } | 61 } |
61 #endif | 62 #endif |
62 | 63 |
63 #endif | 64 #endif |
OLD | NEW |