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

Side by Side Diff: chrome/renderer/renderer_glue.cc

Issue 2956002: Pepper v2 Font API browser implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « DEPS ('k') | chrome/renderer/renderer_sandbox_support_linux.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" 33 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h"
34 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" 34 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h"
35 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 35 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
36 #include "webkit/glue/scoped_clipboard_writer_glue.h" 36 #include "webkit/glue/scoped_clipboard_writer_glue.h"
37 #include "webkit/glue/webkit_glue.h" 37 #include "webkit/glue/webkit_glue.h"
38 #include "webkit/glue/websocketstreamhandle_bridge.h" 38 #include "webkit/glue/websocketstreamhandle_bridge.h"
39 39
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes 41 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes
42 #elif defined(OS_LINUX)
43 #include "chrome/renderer/renderer_sandbox_support_linux.h"
42 #endif 44 #endif
43 45
44 template <typename T, size_t stack_capacity> 46 template <typename T, size_t stack_capacity>
45 class ResizableStackArray { 47 class ResizableStackArray {
46 public: 48 public:
47 ResizableStackArray() 49 ResizableStackArray()
48 : cur_buffer_(stack_buffer_), cur_capacity_(stack_capacity) { 50 : cur_buffer_(stack_buffer_), cur_capacity_(stack_capacity) {
49 } 51 }
50 ~ResizableStackArray() { 52 ~ResizableStackArray() {
51 FreeHeap(); 53 FreeHeap();
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 std::string product("Chrome/"); 306 std::string product("Chrome/");
305 product += version_info.get() ? WideToASCII(version_info->product_version()) 307 product += version_info.get() ? WideToASCII(version_info->product_version())
306 : "0.0.0.0"; 308 : "0.0.0.0";
307 return product; 309 return product;
308 } 310 }
309 311
310 bool IsSingleProcess() { 312 bool IsSingleProcess() {
311 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); 313 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
312 } 314 }
313 315
316 #if defined(OS_LINUX)
317 int MatchFontWithFallback(const std::string& face, bool bold,
318 bool italic, int charset) {
319 return renderer_sandbox_support::MatchFontWithFallback(
320 face, bold, italic, charset);
321 }
322
323 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
324 size_t* output_length) {
325 return renderer_sandbox_support::GetFontTable(
326 fd, table, output, output_length);
327 }
328 #endif
329
314 } // namespace webkit_glue 330 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « DEPS ('k') | chrome/renderer/renderer_sandbox_support_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698