OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/tools/test_shell/webwidget_host.h" | 5 #include "webkit/tools/test_shell/webwidget_host.h" |
6 | 6 |
7 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/gfx/platform_canvas_linux.h" | 11 #include "skia/ext/bitmap_platform_device_linux.h" |
12 #include "base/gfx/platform_device_linux.h" | 12 #include "skia/ext/platform_canvas_linux.h" |
13 #include "base/gfx/bitmap_platform_device_linux.h" | 13 #include "skia/ext/platform_device_linux.h" |
14 #include "webkit/glue/webinputevent.h" | 14 #include "webkit/glue/webinputevent.h" |
15 #include "webkit/glue/webwidget.h" | 15 #include "webkit/glue/webwidget.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // In response to an invalidation, we call into WebKit to do layout. On | 19 // In response to an invalidation, we call into WebKit to do layout. On |
20 // Windows, WM_PAINT is a virtual message so any extra invalidates that come up | 20 // Windows, WM_PAINT is a virtual message so any extra invalidates that come up |
21 // while it's doing layout are implicitly swallowed as soon as we actually do | 21 // while it's doing layout are implicitly swallowed as soon as we actually do |
22 // drawing via BeginPaint. | 22 // drawing via BeginPaint. |
23 // | 23 // |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 | 268 |
269 // ----------------------------------------------------------------------------- | 269 // ----------------------------------------------------------------------------- |
270 // This is called when the GTK window is destroyed. In the Windows code this | 270 // This is called when the GTK window is destroyed. In the Windows code this |
271 // deletes this object. Since it's only test_shell it probably doesn't matter | 271 // deletes this object. Since it's only test_shell it probably doesn't matter |
272 // that much. | 272 // that much. |
273 // ----------------------------------------------------------------------------- | 273 // ----------------------------------------------------------------------------- |
274 void WebWidgetHost::WindowDestroyed() { | 274 void WebWidgetHost::WindowDestroyed() { |
275 delete this; | 275 delete this; |
276 } | 276 } |
OLD | NEW |