diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 19:16:14 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 19:16:14 +0000 |
commit | 484ae5911b6176cad930d9242f8f91914a8165db (patch) | |
tree | 8f8f01cc48899941cf440c987b9a8a500df2cca1 /chrome/browser/tab_contents/tab_contents_view.cc | |
parent | 3e207a886f635cca368921072cf258070cdbe216 (diff) | |
download | chromium_src-484ae5911b6176cad930d9242f8f91914a8165db.zip chromium_src-484ae5911b6176cad930d9242f8f91914a8165db.tar.gz chromium_src-484ae5911b6176cad930d9242f8f91914a8165db.tar.bz2 |
Couple of match preview changes.
. Commit the match preview on mouse up for instant results. This is
needed as instant results may shift up during the commit. If we
didn't do this it could mean the mouse up event appears over a
different item then the mouse went down on.
. Makes match preview revert if focus goes to the page and wasn't
initiated by a mouse event.
. Makes transition from about:crash to valid page not commit the match
preview.
. Changes setOmniboxDimensions to setDropdownDimensions.
BUG=54833 56179
TEST=none
Review URL: http://codereview.chromium.org/3531001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60969 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.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view.cc b/chrome/browser/tab_contents/tab_contents_view.cc index dd0242eb..c03bc35 100644 --- a/chrome/browser/tab_contents/tab_contents_view.cc +++ b/chrome/browser/tab_contents/tab_contents_view.cc @@ -86,6 +86,11 @@ void TabContentsView::ShowCreatedFullscreenWidget(int route_id) { ShowCreatedFullscreenWidgetInternal(widget_host_view); } +void TabContentsView::LostCapture() { + if (tab_contents_->delegate()) + tab_contents_->delegate()->LostCapture(); +} + bool TabContentsView::PreHandleKeyboardEvent( const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { return tab_contents_->delegate() && @@ -103,6 +108,16 @@ void TabContentsView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { tab_contents_->delegate()->HandleKeyboardEvent(event); } +void TabContentsView::HandleMouseUp() { + if (tab_contents_->delegate()) + tab_contents_->delegate()->HandleMouseUp(); +} + +void TabContentsView::HandleMouseActivate() { + if (tab_contents_->delegate()) + tab_contents_->delegate()->HandleMouseActivate(); +} + RenderWidgetHostView* TabContentsView::CreateNewWidgetInternal( int route_id, WebKit::WebPopupType popup_type) { return delegate_view_helper_.CreateNewWidget(route_id, popup_type, |