OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ | 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ |
6 #define COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ | 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "content/public/common/context_menu_params.h" | 10 #include "content/public/common/context_menu_params.h" |
10 #include "ui/base/models/simple_menu_model.h" | 11 #include "ui/base/models/simple_menu_model.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 class WebContents; | 14 class WebContents; |
14 } | 15 } |
15 | 16 |
16 // ContextMenuContentType is a helper to decide which category/group of items | 17 // ContextMenuContentType is a helper to decide which category/group of items |
17 // are relevant for a given WebContents and a context. | 18 // are relevant for a given WebContents and a context. |
18 // | 19 // |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const bool supports_custom_items_; | 80 const bool supports_custom_items_; |
80 | 81 |
81 // A boolean callback to check if the url points to the internal | 82 // A boolean callback to check if the url points to the internal |
82 // resources. | 83 // resources. |
83 InternalResourcesURLChecker internal_resources_url_checker_; | 84 InternalResourcesURLChecker internal_resources_url_checker_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentType); | 86 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentType); |
86 }; | 87 }; |
87 | 88 |
88 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ | 89 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_H_ |
OLD | NEW |