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

Unified Diff: content/shell/renderer/shell_content_renderer_client.cc

Issue 20860003: Remove hyphenation code from Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/shell_content_renderer_client.cc
diff --git a/content/shell/renderer/shell_content_renderer_client.cc b/content/shell/renderer/shell_content_renderer_client.cc
index 657426f9150198afb88f91015626fd19da016f2d..4db6a5218d13b88cebc6feaa0d8c97db1f9c2678 100644
--- a/content/shell/renderer/shell_content_renderer_client.cc
+++ b/content/shell/renderer/shell_content_renderer_client.cc
@@ -22,13 +22,11 @@
#include "third_party/WebKit/public/web/WebPluginParams.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "v8/include/v8.h"
-#include "webkit/mocks/mock_webhyphenator.h"
#include "webkit/support/mock_webclipboard_impl.h"
using WebKit::WebAudioDevice;
using WebKit::WebClipboard;
using WebKit::WebFrame;
-using WebKit::WebHyphenator;
using WebKit::WebMIDIAccessor;
using WebKit::WebMIDIAccessorClient;
using WebKit::WebMediaStreamCenter;
@@ -66,14 +64,6 @@ ShellContentRendererClient::~ShellContentRendererClient() {
g_renderer_client = NULL;
}
-void ShellContentRendererClient::LoadHyphenDictionary(
- base::PlatformFile dict_file) {
- if (!hyphenator_)
- hyphenator_.reset(new webkit_glue::MockWebHyphenator);
- base::SeekPlatformFile(dict_file, base::PLATFORM_FILE_FROM_BEGIN, 0);
- hyphenator_->LoadDictionary(dict_file);
-}
-
void ShellContentRendererClient::RenderThreadStarted() {
shell_observer_.reset(new ShellRenderProcessObserver());
#if defined(OS_MACOSX)
@@ -178,15 +168,6 @@ WebKit::WebCrypto* ShellContentRendererClient::OverrideWebCrypto() {
return interfaces->crypto();
}
-WebHyphenator* ShellContentRendererClient::OverrideWebHyphenator() {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
- return NULL;
- if (!hyphenator_)
- hyphenator_.reset(new webkit_glue::MockWebHyphenator);
- return hyphenator_.get();
-
-}
-
WebThemeEngine* ShellContentRendererClient::OverrideThemeEngine() {
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
return NULL;
« no previous file with comments | « content/shell/renderer/shell_content_renderer_client.h ('k') | content/shell/renderer/shell_render_process_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698