| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "WebURL.h" | 45 #include "WebURL.h" |
| 46 #include "Worker.h" | 46 #include "Worker.h" |
| 47 #include "WorkerContextProxy.h" | 47 #include "WorkerContextProxy.h" |
| 48 | 48 |
| 49 #if PLATFORM(WIN_OS) | 49 #if PLATFORM(WIN_OS) |
| 50 #include "WebRect.h" | 50 #include "WebRect.h" |
| 51 #include "WebSandboxSupport.h" | 51 #include "WebSandboxSupport.h" |
| 52 #include "WebThemeEngine.h" | 52 #include "WebThemeEngine.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 #if PLATFORM(LINUX) | 55 #if PLATFORM(LINUX) || PLATFORM(FREEBSD) |
| 56 #include "WebSandboxSupport.h" | 56 #include "WebSandboxSupport.h" |
| 57 #include "WebFontInfo.h" | 57 #include "WebFontInfo.h" |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 #include "BitmapImage.h" | 60 #include "BitmapImage.h" |
| 61 #include "GraphicsContext.h" | 61 #include "GraphicsContext.h" |
| 62 #include "KURL.h" | 62 #include "KURL.h" |
| 63 #include "NativeImageSkia.h" | 63 #include "NativeImageSkia.h" |
| 64 #include "NotImplemented.h" | 64 #include "NotImplemented.h" |
| 65 #include "PlatformContextSkia.h" | 65 #include "PlatformContextSkia.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool ChromiumBridge::ensureFontLoaded(HFONT font) | 196 bool ChromiumBridge::ensureFontLoaded(HFONT font) |
| 197 { | 197 { |
| 198 WebSandboxSupport* ss = webKitClient()->sandboxSupport(); | 198 WebSandboxSupport* ss = webKitClient()->sandboxSupport(); |
| 199 | 199 |
| 200 // if there is no sandbox, then we can assume the font | 200 // if there is no sandbox, then we can assume the font |
| 201 // was able to be loaded successfully already | 201 // was able to be loaded successfully already |
| 202 return ss ? ss->ensureFontLoaded(font) : true; | 202 return ss ? ss->ensureFontLoaded(font) : true; |
| 203 } | 203 } |
| 204 #endif | 204 #endif |
| 205 | 205 |
| 206 #if PLATFORM(LINUX) | 206 #if PLATFORM(LINUX) || PLATFORM(FREEBSD) |
| 207 String ChromiumBridge::getFontFamilyForCharacters(const UChar* characters, size_t numCharacters) | 207 String ChromiumBridge::getFontFamilyForCharacters(const UChar* characters, size_t numCharacters) |
| 208 { | 208 { |
| 209 if (webKitClient()->sandboxSupport()) | 209 if (webKitClient()->sandboxSupport()) |
| 210 return webKitClient()->sandboxSupport()->getFontFamilyForCharacters(characters, numCharacters); | 210 return webKitClient()->sandboxSupport()->getFontFamilyForCharacters(characters, numCharacters); |
| 211 else { | 211 else { |
| 212 WebCString family = WebFontInfo::familyForChars(characters, numCharacters); | 212 WebCString family = WebFontInfo::familyForChars(characters, numCharacters); |
| 213 if (family.data()) | 213 if (family.data()) |
| 214 return WebString::fromUTF8(family.data()); | 214 return WebString::fromUTF8(family.data()); |
| 215 else | 215 else |
| 216 return WebString(); | 216 return WebString(); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 void ChromiumBridge::widgetSetFocus(Widget* widget) | 559 void ChromiumBridge::widgetSetFocus(Widget* widget) |
| 560 { | 560 { |
| 561 return webKitClient()->widgetSetFocus(widget); | 561 return webKitClient()->widgetSetFocus(widget); |
| 562 } | 562 } |
| 563 | 563 |
| 564 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) | 564 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) |
| 565 { | 565 { |
| 566 return webKitClient()->createWorkerContextProxy(worker); | 566 return webKitClient()->createWorkerContextProxy(worker); |
| 567 } | 567 } |
| 568 | 568 |
| 569 } // namespace WebCore | 569 } // namespace WebCore |
| OLD | NEW |