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 "webkit/api/public/WebInputEvent.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
12 #include "webkit/api/public/WebPopupMenu.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenu.h" |
13 #include "webkit/api/public/WebScreenInfo.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
14 #include "webkit/api/public/WebSize.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
15 #include "webkit/api/public/win/WebInputEventFactory.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h" |
16 #include "webkit/api/public/win/WebScreenInfoFactory.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h" |
17 #include "webkit/tools/test_shell/test_shell.h" | 17 #include "webkit/tools/test_shell/test_shell.h" |
18 | 18 |
19 using WebKit::WebInputEvent; | 19 using WebKit::WebInputEvent; |
20 using WebKit::WebInputEventFactory; | 20 using WebKit::WebInputEventFactory; |
21 using WebKit::WebKeyboardEvent; | 21 using WebKit::WebKeyboardEvent; |
22 using WebKit::WebMouseEvent; | 22 using WebKit::WebMouseEvent; |
23 using WebKit::WebMouseWheelEvent; | 23 using WebKit::WebMouseWheelEvent; |
24 using WebKit::WebPopupMenu; | 24 using WebKit::WebPopupMenu; |
25 using WebKit::WebScreenInfo; | 25 using WebKit::WebScreenInfo; |
26 using WebKit::WebScreenInfoFactory; | 26 using WebKit::WebScreenInfoFactory; |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { | 363 void WebWidgetHost::PaintRect(const gfx::Rect& rect) { |
364 #ifndef NDEBUG | 364 #ifndef NDEBUG |
365 DCHECK(!painting_); | 365 DCHECK(!painting_); |
366 #endif | 366 #endif |
367 DCHECK(canvas_.get()); | 367 DCHECK(canvas_.get()); |
368 | 368 |
369 set_painting(true); | 369 set_painting(true); |
370 webwidget_->paint(canvas_.get(), rect); | 370 webwidget_->paint(canvas_.get(), rect); |
371 set_painting(false); | 371 set_painting(false); |
372 } | 372 } |
OLD | NEW |