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

Unified Diff: chrome/renderer/extensions/extension_helper.h

Issue 10443105: Take 2 at implementing activeTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: empty -> is_empty Created 8 years, 6 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 | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_helper.h
diff --git a/chrome/renderer/extensions/extension_helper.h b/chrome/renderer/extensions/extension_helper.h
index 4e884679ca3328c9915eb2ee5a447bdf5a14c9d3..99afbde55587f3dca47ab69e5026966c01065d0e 100644
--- a/chrome/renderer/extensions/extension_helper.h
+++ b/chrome/renderer/extensions/extension_helper.h
@@ -59,6 +59,7 @@ class ExtensionHelper
bool InstallWebApplicationUsingDefinitionFile(WebKit::WebFrame* frame,
string16* error);
+ int tab_id() const { return tab_id_; }
int browser_window_id() const { return browser_window_id_; }
chrome::ViewType view_type() const { return view_type_; }
@@ -92,6 +93,7 @@ class ExtensionHelper
void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params);
void OnGetApplicationInfo(int page_id);
void OnNotifyRendererViewType(chrome::ViewType view_type);
+ void OnSetTabId(int tab_id);
void OnUpdateBrowserWindowId(int window_id);
// Callback triggered when we finish downloading the application definition
@@ -129,6 +131,9 @@ class ExtensionHelper
// Type of view attached with RenderView.
chrome::ViewType view_type_;
+ // Id of the tab which the RenderView is attached to.
+ int tab_id_;
+
// Id number of browser window which RenderView is attached to.
int browser_window_id_;
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698