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 30 matching lines...) Expand all Loading... |
41 class PagePopup; | 41 class PagePopup; |
42 class PagePopupClient; | 42 class PagePopupClient; |
43 class PagePopupController; | 43 class PagePopupController; |
44 | 44 |
45 class CORE_EXPORT PagePopupSupplement final | 45 class CORE_EXPORT PagePopupSupplement final |
46 : public GarbageCollected<PagePopupSupplement>, | 46 : public GarbageCollected<PagePopupSupplement>, |
47 public Supplement<LocalFrame> { | 47 public Supplement<LocalFrame> { |
48 USING_GARBAGE_COLLECTED_MIXIN(PagePopupSupplement); | 48 USING_GARBAGE_COLLECTED_MIXIN(PagePopupSupplement); |
49 | 49 |
50 public: | 50 public: |
51 static PagePopupController* pagePopupController(LocalFrame&); | 51 static PagePopupSupplement& from(LocalFrame&); |
52 static void install(LocalFrame&, PagePopup&, PagePopupClient*); | 52 static void install(LocalFrame&, PagePopup&, PagePopupClient*); |
53 static void uninstall(LocalFrame&); | 53 static void uninstall(LocalFrame&); |
| 54 |
| 55 PagePopupController* pagePopupController() const; |
54 DECLARE_TRACE(); | 56 DECLARE_TRACE(); |
55 | 57 |
56 private: | 58 private: |
57 PagePopupSupplement(PagePopup&, PagePopupClient*); | 59 PagePopupSupplement(LocalFrame&, PagePopup&, PagePopupClient*); |
58 static const char* supplementName(); | 60 static const char* supplementName(); |
| 61 void dispose(); |
59 | 62 |
60 Member<PagePopupController> m_controller; | 63 Member<PagePopupController> m_controller; |
61 }; | 64 }; |
62 | 65 |
63 } // namespace blink | 66 } // namespace blink |
64 #endif | 67 #endif |
OLD | NEW |