| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa
d remote frames. Tests that load | 192 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa
d remote frames. Tests that load |
| 193 // frames and need further specialization of WebFrameClient behavior should subc
lass this. | 193 // frames and need further specialization of WebFrameClient behavior should subc
lass this. |
| 194 class TestWebRemoteFrameClient : public WebRemoteFrameClient { | 194 class TestWebRemoteFrameClient : public WebRemoteFrameClient { |
| 195 public: | 195 public: |
| 196 TestWebRemoteFrameClient(); | 196 TestWebRemoteFrameClient(); |
| 197 | 197 |
| 198 WebRemoteFrameImpl* frame() const { return m_frame; } | 198 WebRemoteFrameImpl* frame() const { return m_frame; } |
| 199 | 199 |
| 200 // WebRemoteFrameClient overrides: | 200 // WebRemoteFrameClient overrides: |
| 201 void frameDetached(DetachType) override; | 201 void frameDetached(DetachType) override; |
| 202 void postMessageEvent( | 202 void forwardPostMessage( |
| 203 WebLocalFrame* sourceFrame, | 203 WebLocalFrame* sourceFrame, |
| 204 WebRemoteFrame* targetFrame, | 204 WebRemoteFrame* targetFrame, |
| 205 WebSecurityOrigin targetOrigin, | 205 WebSecurityOrigin targetOrigin, |
| 206 WebDOMMessageEvent) override { } | 206 WebDOMMessageEvent) override { } |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 Persistent<WebRemoteFrameImpl> const m_frame; | 209 Persistent<WebRemoteFrameImpl> const m_frame; |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace FrameTestHelpers | 212 } // namespace FrameTestHelpers |
| 213 } // namespace blink | 213 } // namespace blink |
| 214 | 214 |
| 215 #endif // FrameTestHelpers_h | 215 #endif // FrameTestHelpers_h |
| OLD | NEW |