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 WebCore { | 32 namespace WebCore { |
33 class DateTimeChooserClient; | 33 class DateTimeChooserClient; |
34 } | 34 } |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ChromeClientImpl; | 38 class ChromeClientImpl; |
39 class WebString; | 39 class WebString; |
40 class WebViewClient; | 40 class WebViewClient; |
41 | 41 |
42 class ExternalDateTimeChooser : public WebCore::DateTimeChooser { | 42 class ExternalDateTimeChooser FINAL : public WebCore::DateTimeChooser { |
43 public: | 43 public: |
44 static PassRefPtr<ExternalDateTimeChooser> create(ChromeClientImpl*, WebView
Client*, WebCore::DateTimeChooserClient*, const WebCore::DateTimeChooserParamete
rs&); | 44 static PassRefPtr<ExternalDateTimeChooser> create(ChromeClientImpl*, WebView
Client*, WebCore::DateTimeChooserClient*, const WebCore::DateTimeChooserParamete
rs&); |
45 virtual ~ExternalDateTimeChooser(); | 45 virtual ~ExternalDateTimeChooser(); |
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(WebCore::DateTimeChooserClient*); | 53 ExternalDateTimeChooser(WebCore::DateTimeChooserClient*); |
54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const WebCore::D
ateTimeChooserParameters&); | 54 bool openDateTimeChooser(ChromeClientImpl*, WebViewClient*, const WebCore::D
ateTimeChooserParameters&); |
55 | 55 |
56 // DateTimeChooser function: | 56 // DateTimeChooser function: |
57 virtual void endChooser() OVERRIDE; | 57 virtual void endChooser() OVERRIDE; |
58 | 58 |
59 WebCore::DateTimeChooserClient* m_client; | 59 WebCore::DateTimeChooserClient* m_client; |
60 }; | 60 }; |
61 | 61 |
62 } | 62 } |
63 #endif | 63 #endif |
64 | 64 |
65 #endif | 65 #endif |
OLD | NEW |