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

Side by Side Diff: public/web/WebFrame.h

Issue 516753002: Only set fake UserGestureIndicator for tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only set for tests Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 // Check if the scripting URL represents a mixed content condition relative 296 // Check if the scripting URL represents a mixed content condition relative
297 // to this frame. 297 // to this frame.
298 virtual bool checkIfRunInsecureContent(const WebURL&) const = 0; 298 virtual bool checkIfRunInsecureContent(const WebURL&) const = 0;
299 299
300 // Executes script in the context of the current page and returns the value 300 // Executes script in the context of the current page and returns the value
301 // that the script evaluated to. 301 // that the script evaluated to.
302 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( 302 virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
303 const WebScriptSource&) = 0; 303 const WebScriptSource&) = 0;
304 304
305 // ONLY FOR TESTS: Same as above but sets a fake UserGestureIndicator before
306 // execution.
307 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(
308 const WebScriptSource&);
309
305 // worldID must be > 0 (as 0 represents the main world). 310 // worldID must be > 0 (as 0 represents the main world).
306 // worldID must be < EmbedderWorldIdLimit, high number used internally. 311 // worldID must be < EmbedderWorldIdLimit, high number used internally.
307 virtual void executeScriptInIsolatedWorld( 312 virtual void executeScriptInIsolatedWorld(
308 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, 313 int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
309 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0; 314 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0;
310 315
311 // Call the function with the given receiver and arguments, bypassing 316 // Call the function with the given receiver and arguments, bypassing
312 // canExecute(). 317 // canExecute().
313 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( 318 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled(
314 v8::Handle<v8::Function>, 319 v8::Handle<v8::Function>,
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 699 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
695 }; 700 };
696 701
697 #if BLINK_IMPLEMENTATION 702 #if BLINK_IMPLEMENTATION
698 Frame* toCoreFrame(const WebFrame*); 703 Frame* toCoreFrame(const WebFrame*);
699 #endif 704 #endif
700 705
701 } // namespace blink 706 } // namespace blink
702 707
703 #endif 708 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698