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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 29 matching lines...) Expand all Loading... |
40 class PagePopup; | 40 class PagePopup; |
41 class DateTimeChooserClient; | 41 class DateTimeChooserClient; |
42 } | 42 } |
43 | 43 |
44 namespace WebKit { | 44 namespace WebKit { |
45 | 45 |
46 class ChromeClientImpl; | 46 class ChromeClientImpl; |
47 | 47 |
48 class DateTimeChooserImpl : public WebCore::DateTimeChooser, public WebCore::Pag
ePopupClient { | 48 class DateTimeChooserImpl : public WebCore::DateTimeChooser, public WebCore::Pag
ePopupClient { |
49 public: | 49 public: |
50 DateTimeChooserImpl(ChromeClientImpl*, WebCore::DateTimeChooserClient*, cons
t WebCore::DateTimeChooserParameters&); | 50 static PassRefPtr<DateTimeChooserImpl> create(ChromeClientImpl*, WebCore::Da
teTimeChooserClient*, const WebCore::DateTimeChooserParameters&); |
51 virtual ~DateTimeChooserImpl(); | 51 virtual ~DateTimeChooserImpl(); |
52 | 52 |
53 // DateTimeChooser functions: | 53 // DateTimeChooser functions: |
54 virtual void endChooser() OVERRIDE; | 54 virtual void endChooser() OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
| 57 DateTimeChooserImpl(ChromeClientImpl*, WebCore::DateTimeChooserClient*, cons
t WebCore::DateTimeChooserParameters&); |
57 // PagePopupClient functions: | 58 // PagePopupClient functions: |
58 virtual WebCore::IntSize contentSize() OVERRIDE; | 59 virtual WebCore::IntSize contentSize() OVERRIDE; |
59 virtual void writeDocument(WebCore::DocumentWriter&) OVERRIDE; | 60 virtual void writeDocument(WebCore::DocumentWriter&) OVERRIDE; |
60 virtual WebCore::Locale& locale() OVERRIDE; | 61 virtual WebCore::Locale& locale() OVERRIDE; |
61 virtual void setValueAndClosePopup(int, const String&) OVERRIDE; | 62 virtual void setValueAndClosePopup(int, const String&) OVERRIDE; |
62 virtual void didClosePopup() OVERRIDE; | 63 virtual void didClosePopup() OVERRIDE; |
63 | 64 |
64 ChromeClientImpl* m_chromeClient; | 65 ChromeClientImpl* m_chromeClient; |
65 WebCore::DateTimeChooserClient* m_client; | 66 WebCore::DateTimeChooserClient* m_client; |
66 WebCore::PagePopup* m_popup; | 67 WebCore::PagePopup* m_popup; |
67 WebCore::DateTimeChooserParameters m_parameters; | 68 WebCore::DateTimeChooserParameters m_parameters; |
68 OwnPtr<WebCore::Locale> m_locale; | 69 OwnPtr<WebCore::Locale> m_locale; |
69 }; | 70 }; |
70 | 71 |
71 } | 72 } |
72 | 73 |
73 #endif // ENABLE(CALENDAR_PICKER) | 74 #endif // ENABLE(CALENDAR_PICKER) |
74 | 75 |
75 #endif // DateTimeChooserImpl_h | 76 #endif // DateTimeChooserImpl_h |
OLD | NEW |