summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 02:59:12 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 02:59:12 +0000
commit7d5925a7da14d0add8409dec09dc31b3f6d756e3 (patch)
tree3ab31cb6053a9c8402703858f4075528985dcc4e /chrome/browser/tab_contents
parentf46c39462c7a3263d1a6ddab09eb9d60a8eb0610 (diff)
downloadchromium_src-7d5925a7da14d0add8409dec09dc31b3f6d756e3.zip
chromium_src-7d5925a7da14d0add8409dec09dc31b3f6d756e3.tar.gz
chromium_src-7d5925a7da14d0add8409dec09dc31b3f6d756e3.tar.bz2
Make it so that dropdown selects don't deactivate the main frame when opened http://crbug.com/8247
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents_delegate.h5
-rw-r--r--chrome/browser/tab_contents/web_contents_view_win.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h
index a55f0e0..f97a6dc50 100644
--- a/chrome/browser/tab_contents/tab_contents_delegate.h
+++ b/chrome/browser/tab_contents/tab_contents_delegate.h
@@ -147,6 +147,11 @@ class TabContentsDelegate : public PageNavigator {
// This is called when the tab wants to encourage user input, like for the
// new tab page.
virtual void SetFocusToLocationBar() {}
+
+ // Called when a popup select is about to be displayed. The delegate can use
+ // this to disable inactive rendering for the frame in the window the select
+ // is opened within if necessary.
+ virtual void RenderWidgetShowing() {}
};
#endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
diff --git a/chrome/browser/tab_contents/web_contents_view_win.cc b/chrome/browser/tab_contents/web_contents_view_win.cc
index 73602d7..bdbf89c 100644
--- a/chrome/browser/tab_contents/web_contents_view_win.cc
+++ b/chrome/browser/tab_contents/web_contents_view_win.cc
@@ -402,6 +402,7 @@ void WebContentsViewWin::ShowCreatedWidgetInternal(
widget_host_view_win->MoveWindow(initial_pos.x(), initial_pos.y(),
initial_pos.width(), initial_pos.height(),
TRUE);
+ web_contents_->delegate()->RenderWidgetShowing();
widget_host_view_win->ShowWindow(widget_host_view_win->activatable() ?
SW_SHOW : SW_SHOWNA);
widget_host->Init();