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

Unified Diff: webkit/port/platform/chromium/ChromiumBridge.h

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 | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/port/platform/chromium/ScrollbarThemeChromiumWin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/platform/chromium/ChromiumBridge.h
===================================================================
--- webkit/port/platform/chromium/ChromiumBridge.h (revision 6035)
+++ webkit/port/platform/chromium/ChromiumBridge.h (working copy)
@@ -41,6 +41,7 @@
typedef struct NPObject NPObject;
#if PLATFORM(WIN_OS)
+#include <windows.h>
typedef struct HFONT__* HFONT;
#endif
@@ -48,6 +49,7 @@
class Cursor;
class Document;
class Frame;
+ class GraphicsContext;
class Image;
class IntRect;
class KURL;
@@ -86,6 +88,20 @@
// Forms --------------------------------------------------------------
static void notifyFormStateChanged(const Document* doc);
+ // Graphics -----------------------------------------------------------
+#if PLATFORM(WIN_OS)
+ static HDC beginPlatformCanvasPaint(GraphicsContext* gc);
+ static void endPlatformCanvasPaint(GraphicsContext* gc);
+
+ static HRESULT paintScrollbarArrow(
+ HDC hdc, int state_id, int classic_state, RECT* rect);
+ static HRESULT paintScrollbarThumb(
+ HDC hdc, int part_id, int state_id, int classic_state, RECT* rect);
+ static HRESULT paintScrollbarTrack(
+ HDC hdc, int part_id, int state_id, int classic_state,
+ RECT* target_rect, RECT* align_rect, GraphicsContext* gc);
+#endif
+
// JavaScript ---------------------------------------------------------
static void notifyJSOutOfMemory(Frame* frame);
@@ -141,6 +157,9 @@
// Widget -------------------------------------------------------------
static void widgetSetCursor(Widget*, const Cursor&);
static void widgetSetFocus(Widget*);
+
+ // Windows ------------------------------------------------------------
+ static bool runningVista();
};
}
« no previous file with comments | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/port/platform/chromium/ScrollbarThemeChromiumWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698