| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFact
ory.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFact
ory.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/x11/WebScreenInfoFact
ory.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/x11/WebScreenInfoFact
ory.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { | 427 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { |
| 428 set_painting(true); | 428 set_painting(true); |
| 429 webwidget_->paint(canvas_.get(), rect); | 429 webwidget_->paint(canvas_.get(), rect); |
| 430 set_painting(false); | 430 set_painting(false); |
| 431 } | 431 } |
| 432 | 432 |
| 433 void WebWidgetHost::WindowDestroyed() { | 433 void WebWidgetHost::WindowDestroyed() { |
| 434 delete this; | 434 delete this; |
| 435 } | 435 } |
| OLD | NEW |