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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 12335128: Switch from using individual methods for hyphenation to using the WebHyphantor interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 10 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
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 4c2deebdb3714606feecc19b955bb9146b8c7065..86756c78265ae82afcb211431d13ddd15a65f38f 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -27,6 +27,7 @@ class FilePath;
namespace WebKit {
class WebClipboard;
class WebFrame;
+class WebHyphenator;
class WebMediaPlayerClient;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
@@ -139,6 +140,10 @@ class CONTENT_EXPORT ContentRendererClient {
// returns NULL the content layer will handle clipboard interactions.
virtual WebKit::WebClipboard* OverrideWebClipboard();
+ // Allows the embedder to override the WebKit::WebHyphenator used. If it
+ // returns NULL the content layer will handle hyphenation.
+ virtual WebKit::WebHyphenator* OverrideWebHyphenator();
+
// Returns true if the renderer process should schedule the idle handler when
// all widgets are hidden.
virtual bool RunIdleHandlerWhenWidgetsHidden();
« no previous file with comments | « no previous file | content/public/renderer/content_renderer_client.cc » ('j') | webkit/mocks/mock_webhyphenator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698