| 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 "base/gfx/rect.h" | 7 #include "base/gfx/rect.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/win_util.h" | 9 #include "base/win_util.h" |
| 10 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
| 11 #include "skia/ext/platform_canvas_win.h" | |
| 12 #include "webkit/api/public/WebInputEvent.h" | 11 #include "webkit/api/public/WebInputEvent.h" |
| 13 #include "webkit/api/public/WebScreenInfo.h" | 12 #include "webkit/api/public/WebScreenInfo.h" |
| 14 #include "webkit/api/public/WebSize.h" | 13 #include "webkit/api/public/WebSize.h" |
| 15 #include "webkit/api/public/win/WebInputEventFactory.h" | 14 #include "webkit/api/public/win/WebInputEventFactory.h" |
| 16 #include "webkit/api/public/win/WebScreenInfoFactory.h" | 15 #include "webkit/api/public/win/WebScreenInfoFactory.h" |
| 17 #include "webkit/glue/webwidget.h" | 16 #include "webkit/glue/webwidget.h" |
| 18 #include "webkit/tools/test_shell/test_shell.h" | 17 #include "webkit/tools/test_shell/test_shell.h" |
| 19 | 18 |
| 20 using WebKit::WebInputEvent; | 19 using WebKit::WebInputEvent; |
| 21 using WebKit::WebInputEventFactory; | 20 using WebKit::WebInputEventFactory; |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { | 360 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { |
| 362 #ifndef NDEBUG | 361 #ifndef NDEBUG |
| 363 DCHECK(!painting_); | 362 DCHECK(!painting_); |
| 364 #endif | 363 #endif |
| 365 DCHECK(canvas_.get()); | 364 DCHECK(canvas_.get()); |
| 366 | 365 |
| 367 set_painting(true); | 366 set_painting(true); |
| 368 webwidget_->Paint(canvas_.get(), rect); | 367 webwidget_->Paint(canvas_.get(), rect); |
| 369 set_painting(false); | 368 set_painting(false); |
| 370 } | 369 } |
| OLD | NEW |