summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/interstitial_page.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 16:05:24 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 16:05:24 +0000
commit05f6e3828cddb241813ebf1e538ea7f8b25348cb (patch)
treede90ff1ae2a8c290c41c7c5c7f1fe36f446180dd /chrome/browser/tab_contents/interstitial_page.cc
parentd0001a5d4727367f7cc59437dd02d667e9943cac (diff)
downloadchromium_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.cc12
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) {