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

Unified Diff: chrome/browser/extensions/execute_code_in_tab_function.h

Issue 421005: Make executeScript and insertCSS inject code into all frames.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/execute_code_in_tab_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/execute_code_in_tab_function.h
===================================================================
--- chrome/browser/extensions/execute_code_in_tab_function.h (revision 32611)
+++ chrome/browser/extensions/execute_code_in_tab_function.h (working copy)
@@ -20,7 +20,8 @@
class ExecuteCodeInTabFunction : public AsyncExtensionFunction,
public NotificationObserver {
public:
- ExecuteCodeInTabFunction() : execute_tab_id_(-1) {}
+ ExecuteCodeInTabFunction() : execute_tab_id_(-1),
+ all_frames_(false) {}
private:
virtual bool RunImpl();
@@ -44,6 +45,10 @@
// Contains extension resource built from path of file which is
// specified in JSON arguments.
ExtensionResource resource_;
+
+ // If all_frames_ is true, script or CSS text would be injected
+ // to all frames; Otherwise only injected to top main frame.
+ bool all_frames_;
};
class TabsExecuteScriptFunction : public ExecuteCodeInTabFunction {
« no previous file with comments | « no previous file | chrome/browser/extensions/execute_code_in_tab_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698