| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef DateTimeChooserImpl_h | 31 #ifndef DateTimeChooserImpl_h |
| 32 #define DateTimeChooserImpl_h | 32 #define DateTimeChooserImpl_h |
| 33 | 33 |
| 34 #include "core/html/forms/DateTimeChooser.h" | 34 #include "core/html/forms/DateTimeChooser.h" |
| 35 #include "core/page/PagePopupClient.h" | 35 #include "core/page/PagePopupClient.h" |
| 36 #include <memory> | 36 #include <memory> |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ChromeClientImpl; | 40 class ChromeClient; |
| 41 class DateTimeChooserClient; | 41 class DateTimeChooserClient; |
| 42 class PagePopup; | 42 class PagePopup; |
| 43 | 43 |
| 44 class DateTimeChooserImpl final : public DateTimeChooser, | 44 class DateTimeChooserImpl final : public DateTimeChooser, |
| 45 public PagePopupClient { | 45 public PagePopupClient { |
| 46 public: | 46 public: |
| 47 static DateTimeChooserImpl* Create(ChromeClientImpl*, | 47 static DateTimeChooserImpl* Create(ChromeClient*, |
| 48 DateTimeChooserClient*, | 48 DateTimeChooserClient*, |
| 49 const DateTimeChooserParameters&); | 49 const DateTimeChooserParameters&); |
| 50 ~DateTimeChooserImpl() override; | 50 ~DateTimeChooserImpl() override; |
| 51 | 51 |
| 52 // DateTimeChooser functions: | 52 // DateTimeChooser functions: |
| 53 void EndChooser() override; | 53 void EndChooser() override; |
| 54 AXObject* RootAXObject() override; | 54 AXObject* RootAXObject() override; |
| 55 | 55 |
| 56 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 DateTimeChooserImpl(ChromeClientImpl*, | 59 DateTimeChooserImpl(ChromeClient*, |
| 60 DateTimeChooserClient*, | 60 DateTimeChooserClient*, |
| 61 const DateTimeChooserParameters&); | 61 const DateTimeChooserParameters&); |
| 62 // PagePopupClient functions: | 62 // PagePopupClient functions: |
| 63 void WriteDocument(SharedBuffer*) override; | 63 void WriteDocument(SharedBuffer*) override; |
| 64 void SelectFontsFromOwnerDocument(Document&) override {} | 64 void SelectFontsFromOwnerDocument(Document&) override {} |
| 65 Locale& GetLocale() override; | 65 Locale& GetLocale() override; |
| 66 void SetValueAndClosePopup(int, const String&) override; | 66 void SetValueAndClosePopup(int, const String&) override; |
| 67 void SetValue(const String&) override; | 67 void SetValue(const String&) override; |
| 68 void ClosePopup() override; | 68 void ClosePopup() override; |
| 69 Element& OwnerElement() override; | 69 Element& OwnerElement() override; |
| 70 void DidClosePopup() override; | 70 void DidClosePopup() override; |
| 71 | 71 |
| 72 Member<ChromeClientImpl> chrome_client_; | 72 Member<ChromeClient> chrome_client_; |
| 73 Member<DateTimeChooserClient> client_; | 73 Member<DateTimeChooserClient> client_; |
| 74 PagePopup* popup_; | 74 PagePopup* popup_; |
| 75 DateTimeChooserParameters parameters_; | 75 DateTimeChooserParameters parameters_; |
| 76 std::unique_ptr<Locale> locale_; | 76 std::unique_ptr<Locale> locale_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // DateTimeChooserImpl_h | 81 #endif // DateTimeChooserImpl_h |
| OLD | NEW |