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 25 matching lines...) Expand all Loading... |
36 #include "PagePopupClient.h" | 36 #include "PagePopupClient.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class HTMLInputElement; | 40 class HTMLInputElement; |
41 class PagePopup; | 41 class PagePopup; |
42 | 42 |
43 class CalendarPickerElement : public HTMLDivElement, public PagePopupClient { | 43 class CalendarPickerElement : public HTMLDivElement, public PagePopupClient { |
44 public: | 44 public: |
45 static PassRefPtr<CalendarPickerElement> create(Document*); | 45 static PassRefPtr<CalendarPickerElement> create(Document*); |
| 46 virtual ~CalendarPickerElement(); |
46 void openPopup(); | 47 void openPopup(); |
47 void closePopup(); | 48 void closePopup(); |
48 | 49 |
49 private: | 50 private: |
50 CalendarPickerElement(Document*); | 51 CalendarPickerElement(Document*); |
51 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; | 52 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; |
52 virtual void defaultEventHandler(Event*) OVERRIDE; | 53 virtual void defaultEventHandler(Event*) OVERRIDE; |
53 virtual void detach() OVERRIDE; | 54 virtual void detach() OVERRIDE; |
54 | 55 |
55 // PagePopupClient functions: | 56 // PagePopupClient functions: |
56 virtual IntSize contentSize() OVERRIDE; | 57 virtual IntSize contentSize() OVERRIDE; |
57 virtual void writeDocument(DocumentWriter&) OVERRIDE; | 58 virtual void writeDocument(DocumentWriter&) OVERRIDE; |
58 virtual void setValueAndClosePopup(int, const String&) OVERRIDE; | 59 virtual void setValueAndClosePopup(int, const String&) OVERRIDE; |
59 virtual void didClosePopup() OVERRIDE; | 60 virtual void didClosePopup() OVERRIDE; |
60 | 61 |
61 HTMLInputElement* hostInput(); | 62 HTMLInputElement* hostInput(); |
62 | 63 |
63 PagePopup* m_popup; | 64 PagePopup* m_popup; |
64 }; | 65 }; |
65 | 66 |
66 } | 67 } |
67 #endif | 68 #endif |
68 #endif | 69 #endif |
OLD | NEW |