summaryrefslogtreecommitdiffstats
path: root/webkit
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
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')
-rw-r--r--webkit/tools/test_shell/mac/webwidget_host.mm19
-rw-r--r--webkit/tools/test_shell/webwidget_host.h6
-rw-r--r--webkit/tools/test_shell/webwidget_host_gtk.cc3
3 files changed, 8 insertions, 20 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;
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index cb9dee7..9f4a13c 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -109,7 +109,10 @@ class WebWidgetHost {
void Resize(const gfx::Size& size);
#endif
+#if defined(OS_WIN)
void TrackMouseLeave(bool enable);
+#endif
+
void ResetScrollRect();
void PaintRect(const gfx::Rect& rect);
@@ -131,7 +134,10 @@ class WebWidgetHost {
int scroll_dx_;
int scroll_dy_;
+#if defined(OS_WIN)
bool track_mouse_leave_;
+#endif
+
#if defined(OS_LINUX)
// Since GtkWindow resize is asynchronous, we have to stash the dimensions,
// so that the backing store doesn't have to wait for sizing to take place.
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc
index b471e6d..405dc87 100644
--- a/webkit/tools/test_shell/webwidget_host_gtk.cc
+++ b/webkit/tools/test_shell/webwidget_host_gtk.cc
@@ -310,8 +310,7 @@ WebWidgetHost::WebWidgetHost()
: view_(NULL),
webwidget_(NULL),
scroll_dx_(0),
- scroll_dy_(0),
- track_mouse_leave_(false) {
+ scroll_dy_(0) {
set_painting(false);
}