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 21 matching lines...) Expand all Loading... |
32 namespace blink { | 32 namespace blink { |
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 PassRefPtr<ExternalDateTimeChooser> create(ChromeClientImpl*, WebView
Client*, DateTimeChooserClient*, const DateTimeChooserParameters&); | 41 static PassRefPtr<ExternalDateTimeChooser> create(ChromeClientImpl*, WebView
Client*, DateTimeChooserClient*, const DateTimeChooserParameters&); |
42 virtual ~ExternalDateTimeChooser(); | 42 ~ExternalDateTimeChooser() override; |
43 | 43 |
44 // The following functions are for DateTimeChooserCompletion. | 44 // The following functions are for DateTimeChooserCompletion. |
45 void didChooseValue(const WebString&); | 45 void didChooseValue(const WebString&); |
46 void didChooseValue(double); | 46 void didChooseValue(double); |
47 void didCancelChooser(); | 47 void didCancelChooser(); |
48 | 48 |
49 private: | 49 private: |
50 ExternalDateTimeChooser(DateTimeChooserClient*); | 50 ExternalDateTimeChooser(DateTimeChooserClient*); |
51 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); | 51 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const DateTimeCh
ooserParameters&); |
52 | 52 |
53 // DateTimeChooser function: | 53 // DateTimeChooser function: |
54 virtual void endChooser() override; | 54 void endChooser() override; |
55 virtual AXObject* rootAXObject() override; | 55 AXObject* rootAXObject() override; |
56 | 56 |
57 DateTimeChooserClient* m_client; | 57 DateTimeChooserClient* m_client; |
58 }; | 58 }; |
59 | 59 |
60 } | 60 } |
61 #endif | 61 #endif |
62 | 62 |
63 #endif | 63 #endif |
OLD | NEW |