From d65adb173f09a837c96f96fc24a258f439e46e58 Mon Sep 17 00:00:00 2001 From: "gspencer@chromium.org" Date: Wed, 28 Apr 2010 17:26:49 +0000 Subject: This adds in the ability for Chrome to generate windows with snapshots of all currently open tabs in all browsers. This is needed for overview mode on ChromeOS. BUG=http://code.google.com/p/chromium-os/issues/detail?id=1170 TEST=Ran Chrome under ChromeOS with updated window manager. Review URL: http://codereview.chromium.org/661237 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45824 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/widget_gtk.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 11af0a1..4bde019 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -1088,7 +1088,8 @@ bool WidgetGtk::ProcessMousePressed(GdkEventButton* event) { // An event may come from a contained widget which has its own gdk window. // Translate it to the widget's coordinates. - int x, y; + int x = 0; + int y = 0; GetContainedWidgetEventCoordinates(event, &x, &y); last_mouse_event_was_move_ = false; MouseEvent mouse_pressed(Event::ET_MOUSE_PRESSED, x, y, -- cgit v1.1