| Index: webkit/tools/test_shell/webwidget_host_win.cc
|
| ===================================================================
|
| --- webkit/tools/test_shell/webwidget_host_win.cc (revision 12916)
|
| +++ webkit/tools/test_shell/webwidget_host_win.cc (working copy)
|
| @@ -10,7 +10,9 @@
|
| #include "skia/ext/platform_canvas.h"
|
| #include "skia/ext/platform_canvas_win.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
|
| +#include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h"
|
| +#include "third_party/WebKit/WebKit/chromium/public/win/WebScreenInfoFactory.h"
|
| #include "webkit/glue/webwidget.h"
|
| #include "webkit/tools/test_shell/test_shell.h"
|
|
|
| @@ -19,6 +21,8 @@
|
| using WebKit::WebKeyboardEvent;
|
| using WebKit::WebMouseEvent;
|
| using WebKit::WebMouseWheelEvent;
|
| +using WebKit::WebScreenInfo;
|
| +using WebKit::WebScreenInfoFactory;
|
|
|
| static const wchar_t kWindowClassName[] = L"WebWidgetHost";
|
|
|
| @@ -273,6 +277,10 @@
|
| UpdateWindow(view_);
|
| }
|
|
|
| +WebScreenInfo WebWidgetHost::GetScreenInfo() {
|
| + return WebScreenInfoFactory::screenInfo(view_);
|
| +}
|
| +
|
| void WebWidgetHost::Resize(LPARAM lparam) {
|
| // Force an entire re-paint. TODO(darin): Maybe reuse this memory buffer.
|
| DiscardBackingStore();
|
|
|