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

Unified Diff: webkit/glue/webview_impl.h

Issue 42377: Do correct hit testing for context menu items in WebViewImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « no previous file | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.h
===================================================================
--- webkit/glue/webview_impl.h (revision 12035)
+++ webkit/glue/webview_impl.h (working copy)
@@ -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 @@
class ChromiumDataObject;
class Frame;
class HistoryItem;
+class HitTestResult;
class KeyboardEvent;
class Page;
class PlatformKeyboardEvent;
@@ -263,6 +264,11 @@
// 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 @@
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_
« no previous file with comments | « no previous file | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698