| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Minimal implementation of WebFrameClient needed for unit tests that load fram
es. Tests that load | 168 // Minimal implementation of WebFrameClient needed for unit tests that load fram
es. Tests that load |
| 169 // frames and need further specialization of WebFrameClient behavior should subc
lass this. | 169 // frames and need further specialization of WebFrameClient behavior should subc
lass this. |
| 170 class TestWebFrameClient : public WebFrameClient { | 170 class TestWebFrameClient : public WebFrameClient { |
| 171 public: | 171 public: |
| 172 TestWebFrameClient(); | 172 TestWebFrameClient(); |
| 173 | 173 |
| 174 WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const We
bString& name, const WebString& uniqueName, WebSandboxFlags, const WebFrameOwner
Properties&) override; | 174 WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const We
bString& name, const WebString& uniqueName, WebSandboxFlags, const WebFrameOwner
Properties&) override; |
| 175 void frameDetached(WebFrame*, DetachType) override; | 175 void frameDetached(WebFrame*, DetachType) override; |
| 176 void didStartLoading(bool) override; | 176 void didStartLoading(bool) override; |
| 177 void didStopLoading() override; | 177 void didStopLoading() override; |
| 178 void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const We
bSecurityOrigin&, WebSetSinkIdCallbacks*) override; |
| 178 | 179 |
| 179 bool isLoading() { return m_loadsInProgress > 0; } | 180 bool isLoading() { return m_loadsInProgress > 0; } |
| 180 | 181 |
| 181 private: | 182 private: |
| 182 int m_loadsInProgress = 0; | 183 int m_loadsInProgress = 0; |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa
d remote frames. Tests that load | 186 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa
d remote frames. Tests that load |
| 186 // frames and need further specialization of WebFrameClient behavior should subc
lass this. | 187 // frames and need further specialization of WebFrameClient behavior should subc
lass this. |
| 187 class TestWebRemoteFrameClient : public WebRemoteFrameClient { | 188 class TestWebRemoteFrameClient : public WebRemoteFrameClient { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 199 WebDOMMessageEvent) override { } | 200 WebDOMMessageEvent) override { } |
| 200 | 201 |
| 201 private: | 202 private: |
| 202 Persistent<WebRemoteFrameImpl> const m_frame; | 203 Persistent<WebRemoteFrameImpl> const m_frame; |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace FrameTestHelpers | 206 } // namespace FrameTestHelpers |
| 206 } // namespace blink | 207 } // namespace blink |
| 207 | 208 |
| 208 #endif // FrameTestHelpers_h | 209 #endif // FrameTestHelpers_h |
| OLD | NEW |