| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static PassOwnPtr<MockPagePopupDriver> create(LocalFrame* mainFrame); | 44 static PassOwnPtr<MockPagePopupDriver> create(LocalFrame* mainFrame); |
| 45 virtual ~MockPagePopupDriver(); | 45 virtual ~MockPagePopupDriver(); |
| 46 PagePopupController* pagePopupController() { return m_pagePopupController.ge
t(); } | 46 PagePopupController* pagePopupController() { return m_pagePopupController.ge
t(); } |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 MockPagePopupDriver(LocalFrame* mainFrame); | 49 MockPagePopupDriver(LocalFrame* mainFrame); |
| 50 | 50 |
| 51 // PagePopupDriver functions: | 51 // PagePopupDriver functions: |
| 52 virtual PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoun
dsInRootView) OVERRIDE; | 52 virtual PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoun
dsInRootView) OVERRIDE; |
| 53 virtual void closePagePopup(PagePopup*) OVERRIDE; | 53 virtual void closePagePopup(PagePopup*) OVERRIDE; |
| 54 virtual LocalDOMWindow* pagePopupWindow() OVERRIDE { return nullptr; } |
| 54 | 55 |
| 55 RefPtr<MockPagePopup> m_mockPagePopup; | 56 RefPtr<MockPagePopup> m_mockPagePopup; |
| 56 LocalFrame* m_mainFrame; | 57 LocalFrame* m_mainFrame; |
| 57 RefPtrWillBePersistent<PagePopupController> m_pagePopupController; | 58 RefPtrWillBePersistent<PagePopupController> m_pagePopupController; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } | 61 } |
| 61 #endif | 62 #endif |
| OLD | NEW |