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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 34
35 #include "PasteboardPrivate.h" 35 #include "PasteboardPrivate.h"
36 #include "PassRefPtr.h" 36 #include "PassRefPtr.h"
37 #include "PlatformString.h" 37 #include "PlatformString.h"
38 38
39 class NativeImageSkia; 39 class NativeImageSkia;
40 40
41 typedef struct NPObject NPObject; 41 typedef struct NPObject NPObject;
42 42
43 #if PLATFORM(WIN_OS) 43 #if PLATFORM(WIN_OS)
44 #include <windows.h>
44 typedef struct HFONT__* HFONT; 45 typedef struct HFONT__* HFONT;
45 #endif 46 #endif
46 47
47 namespace WebCore { 48 namespace WebCore {
48 class Cursor; 49 class Cursor;
49 class Document; 50 class Document;
50 class Frame; 51 class Frame;
52 class GraphicsContext;
51 class Image; 53 class Image;
52 class IntRect; 54 class IntRect;
53 class KURL; 55 class KURL;
54 class String; 56 class String;
55 class Widget; 57 class Widget;
56 58
57 struct PluginInfo; 59 struct PluginInfo;
58 60
59 // An interface to the embedding layer, which has the ability to answer 61 // An interface to the embedding layer, which has the ability to answer
60 // questions about the system and so on... 62 // questions about the system and so on...
(...skipping 18 matching lines...) Expand all
79 static void prefetchDNS(const String& hostname); 81 static void prefetchDNS(const String& hostname);
80 82
81 // Font --------------------------------------------------------------- 83 // Font ---------------------------------------------------------------
82 #if PLATFORM(WIN_OS) 84 #if PLATFORM(WIN_OS)
83 static bool ensureFontLoaded(HFONT font); 85 static bool ensureFontLoaded(HFONT font);
84 #endif 86 #endif
85 87
86 // Forms -------------------------------------------------------------- 88 // Forms --------------------------------------------------------------
87 static void notifyFormStateChanged(const Document* doc); 89 static void notifyFormStateChanged(const Document* doc);
88 90
91 // Graphics -----------------------------------------------------------
92 #if PLATFORM(WIN_OS)
93 static HDC beginPlatformCanvasPaint(GraphicsContext* gc);
94 static void endPlatformCanvasPaint(GraphicsContext* gc);
95
96 static HRESULT paintScrollbarArrow(
97 HDC hdc, int state_id, int classic_state, RECT* rect);
98 static HRESULT paintScrollbarThumb(
99 HDC hdc, int part_id, int state_id, int classic_state, RECT* rect);
100 static HRESULT paintScrollbarTrack(
101 HDC hdc, int part_id, int state_id, int classic_state,
102 RECT* target_rect, RECT* align_rect, GraphicsContext* gc);
103 #endif
104
89 // JavaScript --------------------------------------------------------- 105 // JavaScript ---------------------------------------------------------
90 static void notifyJSOutOfMemory(Frame* frame); 106 static void notifyJSOutOfMemory(Frame* frame);
91 107
92 // Language ----------------------------------------------------------- 108 // Language -----------------------------------------------------------
93 static String computedDefaultLanguage(); 109 static String computedDefaultLanguage();
94 110
95 // LayoutTestMode ----------------------------------------------------- 111 // LayoutTestMode -----------------------------------------------------
96 static bool layoutTestMode(); 112 static bool layoutTestMode();
97 113
98 // MimeType ----------------------------------------------------------- 114 // MimeType -----------------------------------------------------------
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Trace Event -------------------------------------------------------- 150 // Trace Event --------------------------------------------------------
135 static void traceEventBegin(const char* name, void* id, const char* extr a); 151 static void traceEventBegin(const char* name, void* id, const char* extr a);
136 static void traceEventEnd(const char* name, void* id, const char* extra) ; 152 static void traceEventEnd(const char* name, void* id, const char* extra) ;
137 153
138 // URL ---------------------------------------------------------------- 154 // URL ----------------------------------------------------------------
139 static KURL inspectorURL(); 155 static KURL inspectorURL();
140 156
141 // Widget ------------------------------------------------------------- 157 // Widget -------------------------------------------------------------
142 static void widgetSetCursor(Widget*, const Cursor&); 158 static void widgetSetCursor(Widget*, const Cursor&);
143 static void widgetSetFocus(Widget*); 159 static void widgetSetFocus(Widget*);
160
161 // Windows ------------------------------------------------------------
162 static bool runningVista();
144 }; 163 };
145 } 164 }
146 165
147 #endif 166 #endif
OLDNEW
« 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