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

Unified Diff: content/renderer/dom_utils.h

Issue 384243004: Make <a ping> work for context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address darin's comments Created 6 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
« no previous file with comments | « content/renderer/context_menu_params_builder.cc ('k') | content/renderer/dom_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/dom_utils.h
diff --git a/content/renderer/dom_utils.h b/content/renderer/dom_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..48dd2e3cd15a33bd192e40aff45e6a7786e2aaa4
--- /dev/null
+++ b/content/renderer/dom_utils.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_DOM_UTILS_H_
+#define CONTENT_RENDERER_DOM_UTILS_H_
+
+namespace blink {
+class WebNode;
+}
+
+namespace content {
+
+class DomUtils {
+ public:
+ // Walks up the DOM, looking for the first parent that represents an <a>.
+ // Returns a null WebNode if no such <a> exists.
+ static blink::WebNode ExtractParentAnchorNode(const blink::WebNode& node);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_DOM_UTILS_H_
« no previous file with comments | « content/renderer/context_menu_params_builder.cc ('k') | content/renderer/dom_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698