| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 class TestWebFrameClient : public WebFrameClient { | 251 class TestWebFrameClient : public WebFrameClient { |
| 252 public: | 252 public: |
| 253 TestWebFrameClient(); | 253 TestWebFrameClient(); |
| 254 | 254 |
| 255 void FrameDetached(WebLocalFrame*, DetachType) override; | 255 void FrameDetached(WebLocalFrame*, DetachType) override; |
| 256 WebLocalFrame* CreateChildFrame(WebLocalFrame* parent, | 256 WebLocalFrame* CreateChildFrame(WebLocalFrame* parent, |
| 257 WebTreeScopeType, | 257 WebTreeScopeType, |
| 258 const WebString& name, | 258 const WebString& name, |
| 259 const WebString& fallback_name, | 259 const WebString& fallback_name, |
| 260 WebSandboxFlags, | 260 WebSandboxFlags, |
| 261 const WebParsedFeaturePolicy&, |
| 261 const WebFrameOwnerProperties&) override; | 262 const WebFrameOwnerProperties&) override; |
| 262 void DidStartLoading(bool) override; | 263 void DidStartLoading(bool) override; |
| 263 void DidStopLoading() override; | 264 void DidStopLoading() override; |
| 264 | 265 |
| 265 bool IsLoading() { return loads_in_progress_ > 0; } | 266 bool IsLoading() { return loads_in_progress_ > 0; } |
| 266 | 267 |
| 267 // Tests can override the virtual method below to mock the interface provider. | 268 // Tests can override the virtual method below to mock the interface provider. |
| 268 virtual blink::InterfaceProvider* GetInterfaceProvider() { return nullptr; } | 269 virtual blink::InterfaceProvider* GetInterfaceProvider() { return nullptr; } |
| 269 | 270 |
| 270 private: | 271 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 288 WebDOMMessageEvent) override {} | 289 WebDOMMessageEvent) override {} |
| 289 | 290 |
| 290 private: | 291 private: |
| 291 Persistent<WebRemoteFrameImpl> const frame_; | 292 Persistent<WebRemoteFrameImpl> const frame_; |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace FrameTestHelpers | 295 } // namespace FrameTestHelpers |
| 295 } // namespace blink | 296 } // namespace blink |
| 296 | 297 |
| 297 #endif // FrameTestHelpers_h | 298 #endif // FrameTestHelpers_h |
| OLD | NEW |