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/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "skia/ext/bitmap_platform_device.h" | 12 #include "skia/ext/bitmap_platform_device.h" |
13 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
14 #include "skia/ext/platform_device.h" | 14 #include "skia/ext/platform_device.h" |
15 #include "webkit/api/public/gtk/WebInputEventFactory.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" |
16 #include "webkit/api/public/x11/WebScreenInfoFactory.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/x11/WebScreenInfoFactory.h" |
17 #include "webkit/api/public/WebInputEvent.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
18 #include "webkit/api/public/WebPopupMenu.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenu.h" |
19 #include "webkit/api/public/WebScreenInfo.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
20 #include "webkit/api/public/WebSize.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
21 #include "webkit/tools/test_shell/test_shell.h" | 21 #include "webkit/tools/test_shell/test_shell.h" |
22 #include "webkit/tools/test_shell/test_shell_x11.h" | 22 #include "webkit/tools/test_shell/test_shell_x11.h" |
23 | 23 |
24 using WebKit::WebInputEventFactory; | 24 using WebKit::WebInputEventFactory; |
25 using WebKit::WebKeyboardEvent; | 25 using WebKit::WebKeyboardEvent; |
26 using WebKit::WebMouseEvent; | 26 using WebKit::WebMouseEvent; |
27 using WebKit::WebMouseWheelEvent; | 27 using WebKit::WebMouseWheelEvent; |
28 using WebKit::WebPopupMenu; | 28 using WebKit::WebPopupMenu; |
29 using WebKit::WebScreenInfo; | 29 using WebKit::WebScreenInfo; |
30 using WebKit::WebScreenInfoFactory; | 30 using WebKit::WebScreenInfoFactory; |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 405 |
406 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { | 406 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { |
407 set_painting(true); | 407 set_painting(true); |
408 webwidget_->paint(canvas_.get(), rect); | 408 webwidget_->paint(canvas_.get(), rect); |
409 set_painting(false); | 409 set_painting(false); |
410 } | 410 } |
411 | 411 |
412 void WebWidgetHost::WindowDestroyed() { | 412 void WebWidgetHost::WindowDestroyed() { |
413 delete this; | 413 delete this; |
414 } | 414 } |
OLD | NEW |