summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 05:43:53 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 05:43:53 +0000
commit7b291f9c1394495724ddd81306e982e840075c08 (patch)
treefa2a2ef45f1b17018e716101395300da731d8599 /chrome/browser/tab_contents/tab_contents.cc
parentcc4219ad7dd27008da3db5f0e23da9a6ab2f0387 (diff)
downloadchromium_src-7b291f9c1394495724ddd81306e982e840075c08.zip
chromium_src-7b291f9c1394495724ddd81306e982e840075c08.tar.gz
chromium_src-7b291f9c1394495724ddd81306e982e840075c08.tar.bz2
Implementation of getBackgroundPage(), getToolstrips(), and
getTabContentses(). This lands http://codereview.chromium.org/159067. Raf, the only thing you need to look at is the changes to extensions_process_bindings.js and extension_api.json. BUG=13577 TEST=Browser tests added Review URL: http://codereview.chromium.org/164458 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 72cca16..062f9dc 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -1776,12 +1776,19 @@ TabContents* TabContents::GetAsTabContents() {
return this;
}
+ViewType::Type TabContents::GetRenderViewType() const {
+ return ViewType::TAB_CONTENTS;
+}
+
+int TabContents::GetBrowserWindowID() const {
+ return controller().window_id().id();
+}
+
void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
NotificationService::current()->Notify(
NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
Source<TabContents>(this),
Details<RenderViewHost>(render_view_host));
-
NavigationEntry* entry = controller_.GetActiveEntry();
if (!entry)
return;