summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents_view.cc
diff options
context:
space:
mode:
authorjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 17:03:12 +0000
committerjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 17:03:12 +0000
commit3e2b375b56172a400f75060bd2a827375ea44fea (patch)
tree59f9864d0cf85c5901d686e3757940f8db561328 /chrome/browser/tab_contents/tab_contents_view.cc
parent0d0524fea0ce2adb9aa132f90b63c7deb5410b1f (diff)
downloadchromium_src-3e2b375b56172a400f75060bd2a827375ea44fea.zip
chromium_src-3e2b375b56172a400f75060bd2a827375ea44fea.tar.gz
chromium_src-3e2b375b56172a400f75060bd2a827375ea44fea.tar.bz2
Adding the new WebPopupType to the RenderWidget creation.
BUG=None TEST=Tests that all popups (select popup, autofill, browser actions, bookmark bubble...) work as expected and get the focus correctly. Review URL: http://codereview.chromium.org/1523013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents_view.cc')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view.cc b/chrome/browser/tab_contents/tab_contents_view.cc
index fc5455e..bce9a50 100644
--- a/chrome/browser/tab_contents/tab_contents_view.cc
+++ b/chrome/browser/tab_contents/tab_contents_view.cc
@@ -39,8 +39,9 @@ void TabContentsView::CreateNewWindow(int route_id) {
tab_contents_->delegate()->TabContentsCreated(new_contents);
}
-void TabContentsView::CreateNewWidget(int route_id, bool activatable) {
- CreateNewWidgetInternal(route_id, activatable);
+void TabContentsView::CreateNewWidget(int route_id,
+ WebKit::WebPopupType popup_type) {
+ CreateNewWidgetInternal(route_id, popup_type);
}
void TabContentsView::ShowCreatedWindow(int route_id,
@@ -74,8 +75,8 @@ void TabContentsView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
}
RenderWidgetHostView* TabContentsView::CreateNewWidgetInternal(
- int route_id, bool activatable) {
- return delegate_view_helper_.CreateNewWidget(route_id, activatable,
+ int route_id, WebKit::WebPopupType popup_type) {
+ return delegate_view_helper_.CreateNewWidget(route_id, popup_type,
tab_contents()->render_view_host()->process());
}