Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: webkit/glue/chromium_bridge_impl.cc

Issue 10989: Remove base/ dependencies from ScrollbarThemeChromiumWin. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/port/platform/chromium/ChromiumBridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | webkit/port/platform/chromium/ChromiumBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698