Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ | 5 #ifndef CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ |
| 6 #define CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ | 6 #define CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 struct WebContextMenuData; | 9 struct WebContextMenuData; |
| 10 class WebNode; | |
| 10 } | 11 } |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 struct ContextMenuParams; | 14 struct ContextMenuParams; |
| 14 | 15 |
| 15 class ContextMenuParamsBuilder { | 16 class ContextMenuParamsBuilder { |
| 16 public: | 17 public: |
| 17 static ContextMenuParams Build(const blink::WebContextMenuData& data); | 18 static ContextMenuParams Build(const blink::WebContextMenuData& data); |
| 19 | |
| 20 static blink::WebNode extractParentAnchorNode(const blink::WebNode& node); | |
|
Nate Chapin
2014/07/14 19:01:46
WebContextMenuData provides the deepest WebNode th
darin (slow to review)
2014/07/22 17:34:39
You should probably add some comments on this func
darin (slow to review)
2014/07/22 17:34:40
nit: extract -> Extract
Nate Chapin
2014/07/22 18:19:56
Done.
Nate Chapin
2014/07/22 18:19:56
Done.
| |
| 18 }; | 21 }; |
| 19 | 22 |
| 20 } // namespace content | 23 } // namespace content |
| 21 | 24 |
| 22 #endif // CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ | 25 #endif // CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ |
| OLD | NEW |