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 21 matching lines...) Expand all Loading... |
32 #define DOMWindowPagePopup_h | 32 #define DOMWindowPagePopup_h |
33 | 33 |
34 #include "platform/Supplementable.h" | 34 #include "platform/Supplementable.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class DOMWindow; | 38 class DOMWindow; |
39 class PagePopupClient; | 39 class PagePopupClient; |
40 class PagePopupController; | 40 class PagePopupController; |
41 | 41 |
42 class DOMWindowPagePopup : public Supplement<DOMWindow> { | 42 class DOMWindowPagePopup FINAL : public Supplement<DOMWindow> { |
43 public: | 43 public: |
44 static PagePopupController* pagePopupController(DOMWindow*); | 44 static PagePopupController* pagePopupController(DOMWindow*); |
45 static void install(DOMWindow*, PagePopupClient*); | 45 static void install(DOMWindow*, PagePopupClient*); |
46 static void uninstall(DOMWindow*); | 46 static void uninstall(DOMWindow*); |
47 ~DOMWindowPagePopup(); | 47 virtual ~DOMWindowPagePopup(); |
48 | 48 |
49 private: | 49 private: |
50 explicit DOMWindowPagePopup(PagePopupClient*); | 50 explicit DOMWindowPagePopup(PagePopupClient*); |
51 static const char* supplementName(); | 51 static const char* supplementName(); |
52 | 52 |
53 RefPtr<PagePopupController> m_controller; | 53 RefPtr<PagePopupController> m_controller; |
54 }; | 54 }; |
55 | 55 |
56 } | 56 } |
57 #endif | 57 #endif |
OLD | NEW |