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

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

Issue 868933003: Remove user gesture tracking (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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) 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; 129 virtual void addMessageToConsole(const WebConsoleMessage&) = 0;
130 130
131 // Calls window.gc() if it is defined. 131 // Calls window.gc() if it is defined.
132 virtual void collectGarbage() = 0; 132 virtual void collectGarbage() = 0;
133 133
134 // Executes script in the context of the current page and returns the value 134 // Executes script in the context of the current page and returns the value
135 // that the script evaluated to. 135 // that the script evaluated to.
136 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( 136 virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
137 const WebScriptSource&) = 0; 137 const WebScriptSource&) = 0;
138 138
139 // ONLY FOR TESTS: Same as above but sets a fake UserGestureIndicator before
140 // execution.
141 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(
142 const WebScriptSource&);
143
144 // Call the function with the given receiver and arguments, bypassing 139 // Call the function with the given receiver and arguments, bypassing
145 // canExecute(). 140 // canExecute().
146 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( 141 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled(
147 v8::Handle<v8::Function>, 142 v8::Handle<v8::Function>,
148 v8::Handle<v8::Value>, 143 v8::Handle<v8::Value>,
149 int argc, 144 int argc,
150 v8::Handle<v8::Value> argv[]) = 0; 145 v8::Handle<v8::Value> argv[]) = 0;
151 146
152 // Returns the V8 context for associated with the main world and this 147 // Returns the V8 context for associated with the main world and this
153 // frame. There can be many V8 contexts associated with this frame, one for 148 // frame. There can be many V8 contexts associated with this frame, one for
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 private: 264 private:
270 }; 265 };
271 266
272 #if BLINK_IMPLEMENTATION 267 #if BLINK_IMPLEMENTATION
273 Frame* toCoreFrame(const WebFrame*); 268 Frame* toCoreFrame(const WebFrame*);
274 #endif 269 #endif
275 270
276 } // namespace blink 271 } // namespace blink
277 272
278 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ 273 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698