diff options
-rw-r--r-- | webkit/mocks/mock_webframe.cc | 4 | ||||
-rw-r--r-- | webkit/mocks/mock_webframe.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/mocks/mock_webframe.cc b/webkit/mocks/mock_webframe.cc index 3984625..733486a 100644 --- a/webkit/mocks/mock_webframe.cc +++ b/webkit/mocks/mock_webframe.cc @@ -288,6 +288,10 @@ bool MockWebFrame::firstRectForCharacterRange(unsigned location, return false; } +size_t MockWebFrame::characterIndexForPoint(const WebPoint&) const { + return 0U; +} + bool MockWebFrame::executeCommand(const WebString&) { return false; } diff --git a/webkit/mocks/mock_webframe.h b/webkit/mocks/mock_webframe.h index 62e640e..91f544b 100644 --- a/webkit/mocks/mock_webframe.h +++ b/webkit/mocks/mock_webframe.h @@ -180,6 +180,7 @@ class MockWebFrame : public WebKit::WebFrame { virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const; + virtual size_t characterIndexForPoint(const WebPoint&) const; virtual bool executeCommand(const WebString&); virtual bool executeCommand(const WebString&, const WebString& value); virtual bool isCommandEnabled(const WebString&) const; |