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

Unified Diff: chrome/browser/extensions/extension_browser_event_router.cc

Issue 289006: Issue 21729: Add new event chrome.tabs.onStatusChange . (Closed)
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browser_event_router.cc
===================================================================
--- chrome/browser/extensions/extension_browser_event_router.cc (revision 30333)
+++ chrome/browser/extensions/extension_browser_event_router.cc (working copy)
@@ -311,9 +311,16 @@
// The state of the tab (as seen from the extension point of view) has
// changed. Send a notification to the extension.
ListValue args;
+
+ // First arg: The id of the tab that changed.
args.Append(Value::CreateIntegerValue(tab_id));
+
+ // Second arg: An object containing the changes to the tab state.
args.Append(changed_properties);
+ // Third arg: An object containing the state of the tab.
+ args.Append(ExtensionTabUtil::CreateTabValue(contents));
+
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698