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

Side by Side 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 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
« no previous file with comments | « no previous file | webkit/port/platform/chromium/ChromiumBridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "ChromiumBridge.h" 6 #include "ChromiumBridge.h"
7 7
8 #include "BitmapImage.h" 8 #include "BitmapImage.h"
9 #include "ClipboardUtilitiesChromium.h" 9 #include "ClipboardUtilitiesChromium.h"
10 #include "Cursor.h" 10 #include "Cursor.h"
11 #include "Frame.h" 11 #include "Frame.h"
12 #include "FrameView.h" 12 #include "FrameView.h"
13 #include "GraphicsContext.h"
13 #include "HostWindow.h" 14 #include "HostWindow.h"
14 #include "KURL.h" 15 #include "KURL.h"
15 #include "NativeImageSkia.h" 16 #include "NativeImageSkia.h"
16 #include "Page.h" 17 #include "Page.h"
17 #include "PasteboardPrivate.h" 18 #include "PasteboardPrivate.h"
19 #include "PlatformContextSkia.h"
18 #include "PlatformString.h" 20 #include "PlatformString.h"
19 #include "PlatformWidget.h" 21 #include "PlatformWidget.h"
20 #include "PluginData.h" 22 #include "PluginData.h"
21 #include "PluginInfoStore.h" 23 #include "PluginInfoStore.h"
22 #include "ScrollbarTheme.h" 24 #include "ScrollbarTheme.h"
23 #include "ScrollView.h" 25 #include "ScrollView.h"
24 #include "SystemTime.h" 26 #include "SystemTime.h"
25 #include "Widget.h" 27 #include "Widget.h"
26 28
27 #undef LOG 29 #undef LOG
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return webkit_glue::EnsureFontLoaded(font); 222 return webkit_glue::EnsureFontLoaded(font);
221 } 223 }
222 #endif 224 #endif
223 225
224 // Forms ---------------------------------------------------------------------- 226 // Forms ----------------------------------------------------------------------
225 227
226 void ChromiumBridge::notifyFormStateChanged(const Document* doc) { 228 void ChromiumBridge::notifyFormStateChanged(const Document* doc) {
227 webkit_glue::NotifyFormStateChanged(doc); 229 webkit_glue::NotifyFormStateChanged(doc);
228 } 230 }
229 231
232 // Graphics -------------------------------------------------------------------
233
234 #if defined(OS_WIN)
235 HDC beginPlatformCanvasPaint(GraphicsContext* gc) {
236 gfx::PlatformCanvasWin* canvas = gc->platformContext()->canvas();
237 return canvas->beginPlatformPaint();
238 }
239
240 void endPlatformCanvasPaint(GraphicsContext* gc) {
241 gfx::PlatformCanvasWin* canvas = gc->platformContext()->canvas();
242 canvas->endPlatformPaint();
243 }
244
245 HRESULT paintScrollbarArrow(
246 HDC hdc, int state_id, int classic_state, RECT* rect) {
247 return gfx::NativeTheme::instance()->PaintScrollbarArrow(
248 hdc, state_id, classic_state, rect);
249 }
250
251 HRESULT paintScrollbarThumb(
252 HDC hdc, int part_id, int state_id, int classic_state, RECT* rect) {
253 return gfx::NativeTheme::instance()->PaintScrollbarThumb(
254 hdc, part_id, state_id, classic_state, rect);
255 }
256
257 HRESULT paintScrollbarTrack(
258 HDC hdc, int part_id, int state_id, int classic_state,
259 RECT* target_rect, RECT* align_rect, GraphicsContext* gc) {
260 return gfx::NativeTheme::instance()->PaintScrollbarTrack(
261 hdc, part_id, state_id, classic_state, target_rect, align_rect,
262 gc->platformContext()->canvas());
263 }
264 #endif // defined(OS_WIN)
265
230 // JavaScript ----------------------------------------------------------------- 266 // JavaScript -----------------------------------------------------------------
231 267
232 void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) { 268 void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) {
233 webkit_glue::NotifyJSOutOfMemory(frame); 269 webkit_glue::NotifyJSOutOfMemory(frame);
234 } 270 }
235 271
236 // Language ------------------------------------------------------------------- 272 // Language -------------------------------------------------------------------
237 273
238 String ChromiumBridge::computedDefaultLanguage() { 274 String ChromiumBridge::computedDefaultLanguage() {
239 return webkit_glue::StdWStringToString(webkit_glue::GetWebKitLocale()); 275 return webkit_glue::StdWStringToString(webkit_glue::GetWebKitLocale());
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 chrome_client->SetCursor(WebCursor(cursor.impl())); 546 chrome_client->SetCursor(WebCursor(cursor.impl()));
511 } 547 }
512 548
513 void ChromiumBridge::widgetSetFocus(Widget* widget) { 549 void ChromiumBridge::widgetSetFocus(Widget* widget) {
514 ChromeClientImpl* chrome_client = ToChromeClient(widget); 550 ChromeClientImpl* chrome_client = ToChromeClient(widget);
515 if (chrome_client) 551 if (chrome_client)
516 chrome_client->focus(); 552 chrome_client->focus();
517 } 553 }
518 554
519 } // namespace WebCore 555 } // namespace WebCore
OLDNEW
« 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