summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 18:36:40 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 18:36:40 +0000
commit3e90411bca7552fd365d74713c3080257a6cd889 (patch)
treede5c87b7cfe91d9de9da2de3dc315d315eb448f9 /chrome/browser/notifications
parentd71fabc7d4dd5f6d508347b2818584edb5f6acd5 (diff)
downloadchromium_src-3e90411bca7552fd365d74713c3080257a6cd889.zip
chromium_src-3e90411bca7552fd365d74713c3080257a6cd889.tar.gz
chromium_src-3e90411bca7552fd365d74713c3080257a6cd889.tar.bz2
Don't use GetAsTabContents. Send notifications from TabContentsView instead.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6330007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r--chrome/browser/notifications/balloon_host.cc8
-rw-r--r--chrome/browser/notifications/balloon_host.h3
2 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc
index db96e39..d65173d 100644
--- a/chrome/browser/notifications/balloon_host.cc
+++ b/chrome/browser/notifications/balloon_host.cc
@@ -17,6 +17,7 @@
#include "chrome/common/notification_source.h"
#include "chrome/common/notification_type.h"
#include "chrome/common/render_messages.h"
+#include "chrome/common/render_messages_params.h"
#include "chrome/common/renderer_preferences.h"
#include "chrome/common/url_constants.h"
#include "webkit/glue/webpreferences.h"
@@ -139,8 +140,7 @@ void BalloonHost::ProcessDOMUIMessage(
// open pages in new tabs.
void BalloonHost::CreateNewWindow(
int route_id,
- WindowContainerType window_container_type,
- const string16& frame_name) {
+ const ViewHostMsg_CreateWindow_Params& params) {
delegate_view_helper_.CreateNewWindow(
route_id,
balloon_->profile(),
@@ -148,8 +148,8 @@ void BalloonHost::CreateNewWindow(
DOMUIFactory::GetDOMUIType(balloon_->profile(),
balloon_->notification().content_url()),
this,
- window_container_type,
- frame_name);
+ params.window_container_type,
+ params.frame_name);
}
void BalloonHost::ShowCreatedWindow(int route_id,
diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h
index 8ab8206..99a6c0a 100644
--- a/chrome/browser/notifications/balloon_host.h
+++ b/chrome/browser/notifications/balloon_host.h
@@ -71,8 +71,7 @@ class BalloonHost : public RenderViewHostDelegate,
// windows are currently implemented.
virtual void CreateNewWindow(
int route_id,
- WindowContainerType window_container_type,
- const string16& frame_name);
+ const ViewHostMsg_CreateWindow_Params& params);
virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type) {}
virtual void CreateNewFullscreenWidget(
int route_id, WebKit::WebPopupType popup_type) {}