diff options
Diffstat (limited to 'webkit/glue/webview_impl.h')
-rw-r--r-- | webkit/glue/webview_impl.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h index 78e0a63..4c6572d 100644 --- a/webkit/glue/webview_impl.h +++ b/webkit/glue/webview_impl.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H__ -#define WEBKIT_GLUE_WEBVIEW_IMPL_H__ +#ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ +#define WEBKIT_GLUE_WEBVIEW_IMPL_H_ #include <set> @@ -26,6 +26,7 @@ namespace WebCore { class ChromiumDataObject; class Frame; class HistoryItem; +class HitTestResult; class KeyboardEvent; class Page; class PlatformKeyboardEvent; @@ -263,6 +264,11 @@ class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { // This is invoked after the download is completed (or fails). void DeleteImageResourceFetcher(ImageResourceFetcher* fetcher); + // Converts |pos| from window coordinates to contents coordinates and gets + // the HitTestResult for it. + WebCore::HitTestResult HitTestResultForWindowPos( + const WebCore::IntPoint& pos); + // Returns the currently focused Node or NULL if no node has focus. WebCore::Node* GetFocusedNode(); @@ -328,7 +334,7 @@ public: private: static const WebInputEvent* g_current_input_event; - DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl); + DISALLOW_COPY_AND_ASSIGN(WebViewImpl); }; -#endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__ +#endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |