| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "CSSPropertyNames.h" | 30 #include "CSSPropertyNames.h" |
| 31 #include "CSSValueKeywords.h" | 31 #include "CSSValueKeywords.h" |
| 32 #include "DocumentLoader.h" | 32 #include "DocumentLoader.h" |
| 33 #include "DocumentWriter.h" | 33 #include "DocumentWriter.h" |
| 34 #include "Frame.h" | 34 #include "Frame.h" |
| 35 #include "FrameLoader.h" | 35 #include "FrameLoader.h" |
| 36 #include "HTMLIFrameElement.h" | 36 #include "HTMLIFrameElement.h" |
| 37 #include "PagePopup.h" | 37 #include "PagePopup.h" |
| 38 #include "PagePopupClient.h" | 38 #include "PagePopupClient.h" |
| 39 #include "PagePopupController.h" | 39 #include "PagePopupController.h" |
| 40 #include "Timer.h" | |
| 41 #include "WebCoreTestSupport.h" | 40 #include "WebCoreTestSupport.h" |
| 41 #include "core/platform/Timer.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 class MockPagePopup : public PagePopup, public RefCounted<MockPagePopup> { | 45 class MockPagePopup : public PagePopup, public RefCounted<MockPagePopup> { |
| 46 public: | 46 public: |
| 47 static PassRefPtr<MockPagePopup> create(PagePopupClient*, const IntRect& ori
ginBoundsInRootView, Frame*); | 47 static PassRefPtr<MockPagePopup> create(PagePopupClient*, const IntRect& ori
ginBoundsInRootView, Frame*); |
| 48 virtual ~MockPagePopup(); | 48 virtual ~MockPagePopup(); |
| 49 void closeLater(); | 49 void closeLater(); |
| 50 | 50 |
| 51 private: | 51 private: |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if (!popup || popup != m_mockPagePopup.get()) | 138 if (!popup || popup != m_mockPagePopup.get()) |
| 139 return; | 139 return; |
| 140 m_mockPagePopup->closeLater(); | 140 m_mockPagePopup->closeLater(); |
| 141 m_mockPagePopup.clear(); | 141 m_mockPagePopup.clear(); |
| 142 m_pagePopupController->clearPagePopupClient(); | 142 m_pagePopupController->clearPagePopupClient(); |
| 143 m_pagePopupController.clear(); | 143 m_pagePopupController.clear(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } | 146 } |
| 147 #endif | 147 #endif |
| OLD | NEW |