Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: Source/WebCore/html/shadow/CalendarPickerElement.h

Issue 10449013: Merge 116611 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ManualTests/forms/calendar-picker-crash-by-type-change.html ('k') | Source/WebCore/html/shadow/CalendarPickerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698