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

Side by Side Diff: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp

Issue 26113005: Remove core/platform/win (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months 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 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Computer, Inc. 2 * Copyright (C) 2006, 2007 Apple Computer, Inc.
3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 #include "config.h" 32 #include "config.h"
33 #include "core/platform/graphics/FontPlatformData.h" 33 #include "core/platform/graphics/FontPlatformData.h"
34 34
35 #include "RuntimeEnabledFeatures.h" 35 #include "RuntimeEnabledFeatures.h"
36 #include "SkPaint.h" 36 #include "SkPaint.h"
37 #include "SkTypeface.h" 37 #include "SkTypeface.h"
38 #include "SkTypeface_win.h" 38 #include "SkTypeface_win.h"
39 #include "core/platform/graphics/FontCache.h" 39 #include "core/platform/graphics/FontCache.h"
40 #include "core/platform/graphics/GraphicsContext.h" 40 #include "core/platform/graphics/GraphicsContext.h"
41 #include "core/platform/graphics/skia/SkiaFontWin.h" 41 #include "core/platform/graphics/skia/SkiaFontWin.h"
42 #include "core/platform/win/HWndDC.h"
43 #include "platform/LayoutTestSupport.h" 42 #include "platform/LayoutTestSupport.h"
44 #include "platform/SharedBuffer.h" 43 #include "platform/SharedBuffer.h"
44 #include "platform/win/HWndDC.h"
45 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
46 #include "public/platform/win/WebSandboxSupport.h" 46 #include "public/platform/win/WebSandboxSupport.h"
47 #include "wtf/PassOwnPtr.h" 47 #include "wtf/PassOwnPtr.h"
48 #include "wtf/StdLibExtras.h" 48 #include "wtf/StdLibExtras.h"
49 #include <mlang.h> 49 #include <mlang.h>
50 #include <objidl.h> 50 #include <objidl.h>
51 #include <windows.h> 51 #include <windows.h>
52 52
53 namespace WebCore { 53 namespace WebCore {
54 54
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 bool FontPlatformData::ensureFontLoaded(HFONT font) 380 bool FontPlatformData::ensureFontLoaded(HFONT font)
381 { 381 {
382 WebKit::WebSandboxSupport* sandboxSupport = WebKit::Platform::current()->san dboxSupport(); 382 WebKit::WebSandboxSupport* sandboxSupport = WebKit::Platform::current()->san dboxSupport();
383 // if there is no sandbox, then we can assume the font 383 // if there is no sandbox, then we can assume the font
384 // was able to be loaded successfully already 384 // was able to be loaded successfully already
385 return sandboxSupport ? sandboxSupport->ensureFontLoaded(font) : true; 385 return sandboxSupport ? sandboxSupport->ensureFontLoaded(font) : true;
386 } 386 }
387 387
388 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698