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

Unified Diff: ppapi/shared_impl/webkit_forwarding.h

Issue 9192038: Relanding this with fixes to the mac dbg builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/private/ppb_font_shared.cc ('k') | ppapi/thunk/ppb_font_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/webkit_forwarding.h
===================================================================
--- ppapi/shared_impl/webkit_forwarding.h (revision 118405)
+++ ppapi/shared_impl/webkit_forwarding.h (working copy)
@@ -16,10 +16,6 @@
struct PP_Point;
struct PP_Rect;
-namespace base {
-class WaitableEvent;
-}
-
namespace skia {
class PlatformCanvas;
}
@@ -67,37 +63,22 @@
// on creating vars. Instead, the face name is placed into the given
// string. See class description for waitable_event documentation. If
// non-null, the given event will be set on completion.
- virtual void Describe(base::WaitableEvent* event,
- PP_FontDescription_Dev* description,
+ virtual void Describe(PP_FontDescription_Dev* description,
std::string* face,
PP_FontMetrics_Dev* metrics,
PP_Bool* result) = 0;
- virtual void DrawTextAt(base::WaitableEvent* event,
- const DrawTextParams& params) = 0;
- virtual void MeasureText(base::WaitableEvent* event,
- const TextRun& text,
+ virtual void DrawTextAt(const DrawTextParams& params) = 0;
+ virtual void MeasureText(const TextRun& text,
int32_t* result) = 0;
- virtual void CharacterOffsetForPixel(base::WaitableEvent* event,
- const TextRun& text,
+ virtual void CharacterOffsetForPixel(const TextRun& text,
int32_t pixel_position,
uint32_t* result) = 0;
- virtual void PixelOffsetForCharacter(base::WaitableEvent* event,
- const TextRun& text,
+ virtual void PixelOffsetForCharacter(const TextRun& text,
uint32_t char_offset,
int32_t* result) = 0;
};
virtual ~WebKitForwarding();
-
- // Creates a new font with the given description. The desc_face is the face
- // name already extracted from the description. The caller owns the result
- // pointer, which will never be NULL. If non-null, the given event will be
- // set on completion.
- virtual void CreateFontForwarding(base::WaitableEvent* event,
- const PP_FontDescription_Dev& desc,
- const std::string& desc_face,
- const Preferences& prefs,
- Font** result) = 0;
};
} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/private/ppb_font_shared.cc ('k') | ppapi/thunk/ppb_font_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698