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

Side by Side Diff: webkit/glue/plugins/pepper_font.cc

Issue 4164015: Switch to the new PPAPI repository. This removes the DEPS entry that refers t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « webkit/glue/plugins/pepper_font.h ('k') | webkit/glue/plugins/pepper_graphics_2d.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "webkit/glue/plugins/pepper_font.h" 5 #include "webkit/glue/plugins/pepper_font.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "third_party/ppapi/c/dev/ppb_font_dev.h" 9 #include "ppapi/c/dev/ppb_font_dev.h"
10 #include "third_party/ppapi/c/pp_rect.h" 10 #include "ppapi/c/pp_rect.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebFont.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebFont.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebFontDescription.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebFontDescription.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebFloatPoint.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebFloatPoint.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebFloatRect.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebFloatRect.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebTextRun.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebTextRun.h"
17 #include "webkit/glue/plugins/pepper_image_data.h" 17 #include "webkit/glue/plugins/pepper_image_data.h"
18 #include "webkit/glue/plugins/pepper_plugin_module.h" 18 #include "webkit/glue/plugins/pepper_plugin_module.h"
19 #include "webkit/glue/plugins/pepper_string.h" 19 #include "webkit/glue/plugins/pepper_string.h"
20 #include "webkit/glue/plugins/pepper_var.h" 20 #include "webkit/glue/plugins/pepper_var.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return -1; 283 return -1;
284 if (char_offset >= run.text.length()) 284 if (char_offset >= run.text.length())
285 return -1; 285 return -1;
286 286
287 WebFloatRect rect = font_->selectionRectForText( 287 WebFloatRect rect = font_->selectionRectForText(
288 run, WebFloatPoint(0.0f, 0.0f), font_->height(), 0, char_offset); 288 run, WebFloatPoint(0.0f, 0.0f), font_->height(), 0, char_offset);
289 return static_cast<int>(rect.width); 289 return static_cast<int>(rect.width);
290 } 290 }
291 291
292 } // namespace pepper 292 } // namespace pepper
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_font.h ('k') | webkit/glue/plugins/pepper_graphics_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698