| 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 24 matching lines...) Expand all Loading... |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class Document; | 41 class Document; |
| 42 class PagePopup; | 42 class PagePopup; |
| 43 class PagePopupClient; | 43 class PagePopupClient; |
| 44 | 44 |
| 45 class PagePopupController final : public RefCountedWillBeGarbageCollected<PagePo
pupController>, public ScriptWrappable { | 45 class PagePopupController final : public GarbageCollected<PagePopupController>,
public ScriptWrappable { |
| 46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
| 47 public: | 47 public: |
| 48 static PassRefPtrWillBeRawPtr<PagePopupController> create(PagePopup&, PagePo
pupClient*); | 48 static RawPtr<PagePopupController> create(PagePopup&, PagePopupClient*); |
| 49 void setValueAndClosePopup(int numValue, const String& stringValue); | 49 void setValueAndClosePopup(int numValue, const String& stringValue); |
| 50 void setValue(const String&); | 50 void setValue(const String&); |
| 51 void closePopup(); | 51 void closePopup(); |
| 52 void selectFontsFromOwnerDocument(Document* targetDocument); | 52 void selectFontsFromOwnerDocument(Document* targetDocument); |
| 53 String localizeNumberString(const String&); | 53 String localizeNumberString(const String&); |
| 54 String formatMonth(int year, int zeroBaseMonth); | 54 String formatMonth(int year, int zeroBaseMonth); |
| 55 String formatShortMonth(int year, int zeroBaseMonth); | 55 String formatShortMonth(int year, int zeroBaseMonth); |
| 56 String formatWeek(int year, int weekNumber, const String& localizedStartDate
); | 56 String formatWeek(int year, int weekNumber, const String& localizedStartDate
); |
| 57 void clearPagePopupClient(); | 57 void clearPagePopupClient(); |
| 58 void setWindowRect(int x, int y, int width, int height); | 58 void setWindowRect(int x, int y, int width, int height); |
| 59 | 59 |
| 60 DEFINE_INLINE_TRACE() { } | 60 DEFINE_INLINE_TRACE() { } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 PagePopupController(PagePopup&, PagePopupClient*); | 63 PagePopupController(PagePopup&, PagePopupClient*); |
| 64 | 64 |
| 65 PagePopup& m_popup; | 65 PagePopup& m_popup; |
| 66 PagePopupClient* m_popupClient; | 66 PagePopupClient* m_popupClient; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // PagePopupController_h | 71 #endif // PagePopupController_h |
| OLD | NEW |