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 } | 10 } |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 struct ContextMenuParams; | 13 struct ContextMenuParams; |
| 14 class PageState; |
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 const PageState& state); |
18 }; | 20 }; |
19 | 21 |
20 } // namespace content | 22 } // namespace content |
21 | 23 |
22 #endif // CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ | 24 #endif // CONTENT_RENDERER_CONTEXT_MENU_PARAMS_BUILDER_H_ |
OLD | NEW |