| 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 #include "components/renderer_context_menu/render_view_context_menu_base.h" | 5 #include "components/renderer_context_menu/render_view_context_menu_base.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "content/public/browser/render_frame_host.h" | 12 #include "content/public/browser/render_frame_host.h" |
| 13 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
| 14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/render_widget_host_view.h" | 15 #include "content/public/browser/render_widget_host_view.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/common/menu_item.h" | 17 #include "content/public/common/menu_item.h" |
| 18 #include "extensions/browser/extension_host.h" | |
| 19 #include "extensions/browser/extension_system.h" | |
| 20 #include "extensions/browser/view_type_utils.h" | |
| 21 #include "extensions/common/extension.h" | |
| 22 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 18 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
| 23 | 19 |
| 24 using blink::WebContextMenuData; | 20 using blink::WebContextMenuData; |
| 25 using blink::WebString; | 21 using blink::WebString; |
| 26 using blink::WebURL; | 22 using blink::WebURL; |
| 27 using content::BrowserContext; | 23 using content::BrowserContext; |
| 28 using content::OpenURLParams; | 24 using content::OpenURLParams; |
| 29 using content::RenderFrameHost; | 25 using content::RenderFrameHost; |
| 30 using content::RenderViewHost; | 26 using content::RenderViewHost; |
| 31 using content::WebContents; | 27 using content::WebContents; |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 380 } |
| 385 | 381 |
| 386 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const { | 382 bool RenderViewContextMenuBase::IsCustomItemChecked(int id) const { |
| 387 return IsCustomItemCheckedInternal(params_.custom_items, id); | 383 return IsCustomItemCheckedInternal(params_.custom_items, id); |
| 388 } | 384 } |
| 389 | 385 |
| 390 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const { | 386 bool RenderViewContextMenuBase::IsCustomItemEnabled(int id) const { |
| 391 return IsCustomItemEnabledInternal(params_.custom_items, id); | 387 return IsCustomItemEnabledInternal(params_.custom_items, id); |
| 392 } | 388 } |
| 393 | 389 |
| OLD | NEW |