diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 16:05:24 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 16:05:24 +0000 |
commit | 05f6e3828cddb241813ebf1e538ea7f8b25348cb (patch) | |
tree | de90ff1ae2a8c290c41c7c5c7f1fe36f446180dd /chrome/browser/tab_contents/interstitial_page.cc | |
parent | d0001a5d4727367f7cc59437dd02d667e9943cac (diff) | |
download | chromium_src-05f6e3828cddb241813ebf1e538ea7f8b25348cb.zip chromium_src-05f6e3828cddb241813ebf1e538ea7f8b25348cb.tar.gz chromium_src-05f6e3828cddb241813ebf1e538ea7f8b25348cb.tar.bz2 |
Forward simplified mouse events to the RenderViewHostDelegate::View so that it can implementsimple hover / tracking behavior.BUG=crbug.com/12067TEST=none (suggestions welcome)
Review URL: http://codereview.chromium.org/113481
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/interstitial_page.cc')
-rw-r--r-- | chrome/browser/tab_contents/interstitial_page.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/interstitial_page.cc b/chrome/browser/tab_contents/interstitial_page.cc index 04afbbc..f697488 100644 --- a/chrome/browser/tab_contents/interstitial_page.cc +++ b/chrome/browser/tab_contents/interstitial_page.cc @@ -85,6 +85,8 @@ class InterstitialPage::InterstitialPageRVHViewDelegate virtual void UpdateDragCursor(bool is_drop_target); virtual void TakeFocus(bool reverse); virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); + virtual void HandleMouseEvent(); + virtual void HandleMouseLeave(); virtual void OnFindReply(int request_id, int number_of_matches, const gfx::Rect& selection_rect, @@ -533,6 +535,16 @@ void InterstitialPage::InterstitialPageRVHViewDelegate::HandleKeyboardEvent( interstitial_page_->tab()->GetViewDelegate()->HandleKeyboardEvent(event); } +void InterstitialPage::InterstitialPageRVHViewDelegate::HandleMouseEvent() { + if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) + interstitial_page_->tab()->GetViewDelegate()->HandleMouseEvent(); +} + +void InterstitialPage::InterstitialPageRVHViewDelegate::HandleMouseLeave() { + if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) + interstitial_page_->tab()->GetViewDelegate()->HandleMouseLeave(); +} + void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( int request_id, int number_of_matches, const gfx::Rect& selection_rect, int active_match_ordinal, bool final_update) { |