| 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 "core/page/PagePopupClient.h" | 36 #include "core/page/PagePopupClient.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ChromeClientImpl; | 40 class ChromeClientImpl; |
| 41 class DateTimeChooserClient; | 41 class DateTimeChooserClient; |
| 42 class PagePopup; | 42 class PagePopup; |
| 43 | 43 |
| 44 class DateTimeChooserImpl final : public DateTimeChooser, public PagePopupClient
{ | 44 class DateTimeChooserImpl final : public DateTimeChooser, public PagePopupClient
{ |
| 45 public: | 45 public: |
| 46 static PassRefPtr<DateTimeChooserImpl> create(ChromeClientImpl*, DateTimeCho
oserClient*, const DateTimeChooserParameters&); | 46 static PassRefPtrWillBeRawPtr<DateTimeChooserImpl> create(ChromeClientImpl*,
DateTimeChooserClient*, const DateTimeChooserParameters&); |
| 47 ~DateTimeChooserImpl() override; | 47 ~DateTimeChooserImpl() override; |
| 48 | 48 |
| 49 // DateTimeChooser functions: | 49 // DateTimeChooser functions: |
| 50 void endChooser() override; | 50 void endChooser() override; |
| 51 AXObject* rootAXObject() override; | 51 AXObject* rootAXObject() override; |
| 52 | 52 |
| 53 DECLARE_VIRTUAL_TRACE(); |
| 54 |
| 53 private: | 55 private: |
| 54 DateTimeChooserImpl(ChromeClientImpl*, DateTimeChooserClient*, const DateTim
eChooserParameters&); | 56 DateTimeChooserImpl(ChromeClientImpl*, DateTimeChooserClient*, const DateTim
eChooserParameters&); |
| 55 // PagePopupClient functions: | 57 // PagePopupClient functions: |
| 56 IntSize contentSize() override; | 58 IntSize contentSize() override; |
| 57 void writeDocument(SharedBuffer*) override; | 59 void writeDocument(SharedBuffer*) override; |
| 58 void selectFontsFromOwnerDocument(Document&) override { } | 60 void selectFontsFromOwnerDocument(Document&) override { } |
| 59 Locale& locale() override; | 61 Locale& locale() override; |
| 60 void setValueAndClosePopup(int, const String&) override; | 62 void setValueAndClosePopup(int, const String&) override; |
| 61 void setValue(const String&) override; | 63 void setValue(const String&) override; |
| 62 void closePopup() override; | 64 void closePopup() override; |
| 63 Element& ownerElement() override; | 65 Element& ownerElement() override; |
| 64 void didClosePopup() override; | 66 void didClosePopup() override; |
| 65 | 67 |
| 66 ChromeClientImpl* m_chromeClient; | 68 RawPtrWillBeMember<ChromeClientImpl> m_chromeClient; |
| 67 DateTimeChooserClient* m_client; | 69 DateTimeChooserClient* m_client; |
| 68 PagePopup* m_popup; | 70 PagePopup* m_popup; |
| 69 DateTimeChooserParameters m_parameters; | 71 DateTimeChooserParameters m_parameters; |
| 70 OwnPtr<Locale> m_locale; | 72 OwnPtr<Locale> m_locale; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 } | 75 } |
| 74 | 76 |
| 75 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 77 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 76 | 78 |
| 77 #endif // DateTimeChooserImpl_h | 79 #endif // DateTimeChooserImpl_h |
| OLD | NEW |