summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/mac/webwidget_host.mm
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-26 00:12:24 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-26 00:12:24 +0000
commit42030611f1382f14631bdd8a9b1cfc6a219892af (patch)
tree56f66f03dfad1291612f670ae349867b431e2e8f /webkit/tools/test_shell/mac/webwidget_host.mm
parentb9f49354b4c5ea4495236957478edc56580c9b4e (diff)
downloadchromium_src-42030611f1382f14631bdd8a9b1cfc6a219892af.zip
chromium_src-42030611f1382f14631bdd8a9b1cfc6a219892af.tar.gz
chromium_src-42030611f1382f14631bdd8a9b1cfc6a219892af.tar.bz2
linux+mac: drop unused code
The TrackMouseFoo functions were added to match Windows, but we're obviously passing all these layout tests without 'em and the body of the function is empty. BUG=9523 Review URL: http://codereview.chromium.org/235031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mac/webwidget_host.mm')
-rw-r--r--webkit/tools/test_shell/mac/webwidget_host.mm19
1 files changed, 1 insertions, 18 deletions
diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm
index 5be3a2a..da34ca7 100644
--- a/webkit/tools/test_shell/mac/webwidget_host.mm
+++ b/webkit/tools/test_shell/mac/webwidget_host.mm
@@ -141,17 +141,13 @@ WebWidgetHost::WebWidgetHost()
: view_(NULL),
webwidget_(NULL),
scroll_dx_(0),
- scroll_dy_(0),
- track_mouse_leave_(false)
-{
+ scroll_dy_(0) {
set_painting(false);
}
WebWidgetHost::~WebWidgetHost() {
// win_util::SetWindowUserData(hwnd_, 0);
- TrackMouseLeave(false);
-
webwidget_->close();
}
@@ -236,16 +232,6 @@ void WebWidgetHost::Resize(const gfx::Rect& rect) {
void WebWidgetHost::MouseEvent(NSEvent *event) {
const WebMouseEvent& web_event = WebInputEventFactory::mouseEvent(
event, view_);
- switch (web_event.type) {
- case WebInputEvent::MouseMove:
- TrackMouseLeave(true);
- break;
- case WebInputEvent::MouseLeave:
- TrackMouseLeave(false);
- break;
- default:
- break;
- }
webwidget_->handleInputEvent(web_event);
}
@@ -273,9 +259,6 @@ void WebWidgetHost::SetFocus(bool enable) {
webwidget_->setFocus(enable);
}
-void WebWidgetHost::TrackMouseLeave(bool track) {
-}
-
void WebWidgetHost::ResetScrollRect() {
scroll_rect_ = gfx::Rect();
scroll_dx_ = 0;