Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.h

Issue 2714943004: Move unique name generation and tracking into //content. (Closed)
Patch Set: Rebase again. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // frames. Tests that load frames and need further specialization of 238 // frames. Tests that load frames and need further specialization of
239 // WebFrameClient behavior should subclass this. 239 // WebFrameClient behavior should subclass this.
240 class TestWebFrameClient : public WebFrameClient { 240 class TestWebFrameClient : public WebFrameClient {
241 public: 241 public:
242 TestWebFrameClient(); 242 TestWebFrameClient();
243 243
244 void frameDetached(WebLocalFrame*, DetachType) override; 244 void frameDetached(WebLocalFrame*, DetachType) override;
245 WebLocalFrame* createChildFrame(WebLocalFrame* parent, 245 WebLocalFrame* createChildFrame(WebLocalFrame* parent,
246 WebTreeScopeType, 246 WebTreeScopeType,
247 const WebString& name, 247 const WebString& name,
248 const WebString& uniqueName, 248 const WebString& fallbackName,
249 WebSandboxFlags, 249 WebSandboxFlags,
250 const WebFrameOwnerProperties&) override; 250 const WebFrameOwnerProperties&) override;
251 void didStartLoading(bool) override; 251 void didStartLoading(bool) override;
252 void didStopLoading() override; 252 void didStopLoading() override;
253 253
254 bool isLoading() { return m_loadsInProgress > 0; } 254 bool isLoading() { return m_loadsInProgress > 0; }
255 255
256 // Tests can override the virtual method below to mock the interface provider. 256 // Tests can override the virtual method below to mock the interface provider.
257 virtual blink::InterfaceProvider* interfaceProvider() { return nullptr; } 257 virtual blink::InterfaceProvider* interfaceProvider() { return nullptr; }
258 258
(...skipping 18 matching lines...) Expand all
277 WebDOMMessageEvent) override {} 277 WebDOMMessageEvent) override {}
278 278
279 private: 279 private:
280 Persistent<WebRemoteFrameImpl> const m_frame; 280 Persistent<WebRemoteFrameImpl> const m_frame;
281 }; 281 };
282 282
283 } // namespace FrameTestHelpers 283 } // namespace FrameTestHelpers
284 } // namespace blink 284 } // namespace blink
285 285
286 #endif // FrameTestHelpers_h 286 #endif // FrameTestHelpers_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698