mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-23 15:37:51 +01:00
Implement Platform::hyphenator() to avoid crash (issue #1007).
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1453@1298 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
6d29c3ae5c
commit
1211129df4
@ -12,6 +12,7 @@
|
||||
#include "base/metrics/stats_counters.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h"
|
||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebPrerenderingSupport.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
|
||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
|
||||
@ -21,6 +22,12 @@
|
||||
#include "webkit/plugins/npapi/plugin_list.h"
|
||||
|
||||
|
||||
// Stub implementation of WebKit::WebHyphenator.
|
||||
class BrowserHyphenator : public WebKit::WebHyphenator {
|
||||
public:
|
||||
virtual ~BrowserHyphenator() {}
|
||||
};
|
||||
|
||||
// Stub implementation of WebKit::WebPrerenderingSupport.
|
||||
class BrowserPrerenderingSupport : public WebKit::WebPrerenderingSupport {
|
||||
public:
|
||||
@ -110,6 +117,12 @@ WebKit::WebFileSystem* BrowserWebKitInit::fileSystem() {
|
||||
return file_system;
|
||||
}
|
||||
|
||||
WebKit::WebHyphenator* BrowserWebKitInit::hyphenator() {
|
||||
if (!hyphenator_.get())
|
||||
hyphenator_.reset(new BrowserHyphenator);
|
||||
return hyphenator_.get();
|
||||
}
|
||||
|
||||
bool BrowserWebKitInit::sandboxEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "webkit/glue/webfileutilities_impl.h"
|
||||
#include "webkit/glue/webkitplatformsupport_impl.h"
|
||||
|
||||
class BrowserHyphenator;
|
||||
class BrowserPrerenderingSupport;
|
||||
|
||||
namespace WebKit {
|
||||
@ -41,6 +42,7 @@ class BrowserWebKitInit : public webkit_glue::WebKitPlatformSupportImpl {
|
||||
virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE;
|
||||
virtual WebKit::WebCookieJar* cookieJar() OVERRIDE;
|
||||
virtual WebKit::WebFileSystem* fileSystem() OVERRIDE;
|
||||
virtual WebKit::WebHyphenator* hyphenator() OVERRIDE;
|
||||
virtual bool sandboxEnabled() OVERRIDE;
|
||||
virtual WebKit::Platform::FileHandle databaseOpenFile(
|
||||
const WebKit::WebString& vfs_file_name, int desired_flags) OVERRIDE;
|
||||
@ -105,6 +107,7 @@ class BrowserWebKitInit : public webkit_glue::WebKitPlatformSupportImpl {
|
||||
BrowserWebCookieJarImpl cookie_jar_;
|
||||
scoped_refptr<BrowserWebBlobRegistryImpl> blob_registry_;
|
||||
scoped_ptr<BrowserPrerenderingSupport> prerendering_support_;
|
||||
scoped_ptr<BrowserHyphenator> hyphenator_;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_WEBKIT_INIT_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user