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

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

Issue 1774123006: Implement link selection on alt+mouse drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use String instead of std::string. Created 4 years, 8 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Same as above, but for WebFrame::loadHistoryItem(). 68 // Same as above, but for WebFrame::loadHistoryItem().
69 void loadHistoryItem(WebFrame*, const WebHistoryItem&, WebHistoryLoadType, WebUR LRequest::CachePolicy); 69 void loadHistoryItem(WebFrame*, const WebHistoryItem&, WebHistoryLoadType, WebUR LRequest::CachePolicy);
70 // Same as above, but for WebFrame::reload(). 70 // Same as above, but for WebFrame::reload().
71 void reloadFrame(WebFrame*); 71 void reloadFrame(WebFrame*);
72 void reloadFrameIgnoringCache(WebFrame*); 72 void reloadFrameIgnoringCache(WebFrame*);
73 73
74 // Pumps pending resource requests while waiting for a frame to load. Consider 74 // Pumps pending resource requests while waiting for a frame to load. Consider
75 // using one of the above helper methods whenever possible. 75 // using one of the above helper methods whenever possible.
76 void pumpPendingRequestsForFrameToLoad(WebFrame*); 76 void pumpPendingRequestsForFrameToLoad(WebFrame*);
77 77
78 WebMouseEvent createMouseEvent(WebInputEvent::Type, WebMouseEvent::Button, const IntPoint&, int modifiers);
79
78 // Calls WebRemoteFrame::createLocalChild, but with some arguments prefilled 80 // Calls WebRemoteFrame::createLocalChild, but with some arguments prefilled
79 // with default test values (i.e. with a default |client| or |properties| and/or 81 // with default test values (i.e. with a default |client| or |properties| and/or
80 // with a precalculated |uniqueName|). 82 // with a precalculated |uniqueName|).
81 WebLocalFrame* createLocalChild(WebRemoteFrame* parent, const WebString& name = WebString(), WebFrameClient* = nullptr, WebFrame* previousSibling = nullptr, con st WebFrameOwnerProperties& = WebFrameOwnerProperties()); 83 WebLocalFrame* createLocalChild(WebRemoteFrame* parent, const WebString& name = WebString(), WebFrameClient* = nullptr, WebFrame* previousSibling = nullptr, con st WebFrameOwnerProperties& = WebFrameOwnerProperties());
82 WebRemoteFrame* createRemoteChild(WebRemoteFrame* parent, WebRemoteFrameClient*, const WebString& name = WebString()); 84 WebRemoteFrame* createRemoteChild(WebRemoteFrame* parent, WebRemoteFrameClient*, const WebString& name = WebString());
83 85
84 class SettingOverrider { 86 class SettingOverrider {
85 public: 87 public:
86 virtual void overrideSettings(WebSettings*) = 0; 88 virtual void overrideSettings(WebSettings*) = 0;
87 }; 89 };
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 WebDOMMessageEvent) override { } 199 WebDOMMessageEvent) override { }
198 200
199 private: 201 private:
200 RawPtrWillBePersistent<WebRemoteFrameImpl> const m_frame; 202 RawPtrWillBePersistent<WebRemoteFrameImpl> const m_frame;
201 }; 203 };
202 204
203 } // namespace FrameTestHelpers 205 } // namespace FrameTestHelpers
204 } // namespace blink 206 } // namespace blink
205 207
206 #endif // FrameTestHelpers_h 208 #endif // FrameTestHelpers_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698