| Index: webkit/glue/chromium_bridge_impl.cc
|
| ===================================================================
|
| --- webkit/glue/chromium_bridge_impl.cc (revision 6035)
|
| +++ webkit/glue/chromium_bridge_impl.cc (working copy)
|
| @@ -10,11 +10,13 @@
|
| #include "Cursor.h"
|
| #include "Frame.h"
|
| #include "FrameView.h"
|
| +#include "GraphicsContext.h"
|
| #include "HostWindow.h"
|
| #include "KURL.h"
|
| #include "NativeImageSkia.h"
|
| #include "Page.h"
|
| #include "PasteboardPrivate.h"
|
| +#include "PlatformContextSkia.h"
|
| #include "PlatformString.h"
|
| #include "PlatformWidget.h"
|
| #include "PluginData.h"
|
| @@ -227,6 +229,40 @@
|
| webkit_glue::NotifyFormStateChanged(doc);
|
| }
|
|
|
| +// Graphics -------------------------------------------------------------------
|
| +
|
| +#if defined(OS_WIN)
|
| +HDC beginPlatformCanvasPaint(GraphicsContext* gc) {
|
| + gfx::PlatformCanvasWin* canvas = gc->platformContext()->canvas();
|
| + return canvas->beginPlatformPaint();
|
| +}
|
| +
|
| +void endPlatformCanvasPaint(GraphicsContext* gc) {
|
| + gfx::PlatformCanvasWin* canvas = gc->platformContext()->canvas();
|
| + canvas->endPlatformPaint();
|
| +}
|
| +
|
| +HRESULT paintScrollbarArrow(
|
| + HDC hdc, int state_id, int classic_state, RECT* rect) {
|
| + return gfx::NativeTheme::instance()->PaintScrollbarArrow(
|
| + hdc, state_id, classic_state, rect);
|
| +}
|
| +
|
| +HRESULT paintScrollbarThumb(
|
| + HDC hdc, int part_id, int state_id, int classic_state, RECT* rect) {
|
| + return gfx::NativeTheme::instance()->PaintScrollbarThumb(
|
| + hdc, part_id, state_id, classic_state, rect);
|
| +}
|
| +
|
| +HRESULT paintScrollbarTrack(
|
| + HDC hdc, int part_id, int state_id, int classic_state,
|
| + RECT* target_rect, RECT* align_rect, GraphicsContext* gc) {
|
| + return gfx::NativeTheme::instance()->PaintScrollbarTrack(
|
| + hdc, part_id, state_id, classic_state, target_rect, align_rect,
|
| + gc->platformContext()->canvas());
|
| +}
|
| +#endif // defined(OS_WIN)
|
| +
|
| // JavaScript -----------------------------------------------------------------
|
|
|
| void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) {
|
|
|