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 "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 #include "extensions/browser/view_type_utils.h" | 91 #include "extensions/browser/view_type_utils.h" |
92 #include "extensions/common/extension.h" | 92 #include "extensions/common/extension.h" |
93 #include "net/base/escape.h" | 93 #include "net/base/escape.h" |
94 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 94 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
95 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 95 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
96 #include "third_party/WebKit/public/web/WebPluginAction.h" | 96 #include "third_party/WebKit/public/web/WebPluginAction.h" |
97 #include "ui/base/clipboard/clipboard.h" | 97 #include "ui/base/clipboard/clipboard.h" |
98 #include "ui/base/l10n/l10n_util.h" | 98 #include "ui/base/l10n/l10n_util.h" |
99 #include "ui/gfx/favicon_size.h" | 99 #include "ui/gfx/favicon_size.h" |
100 #include "ui/gfx/geometry/point.h" | 100 #include "ui/gfx/geometry/point.h" |
101 #include "ui/gfx/size.h" | 101 #include "ui/gfx/geometry/size.h" |
102 #include "ui/gfx/text_elider.h" | 102 #include "ui/gfx/text_elider.h" |
103 | 103 |
104 #if defined(ENABLE_PRINTING) | 104 #if defined(ENABLE_PRINTING) |
105 #include "chrome/browser/printing/print_view_manager_common.h" | 105 #include "chrome/browser/printing/print_view_manager_common.h" |
106 #include "chrome/common/print_messages.h" | 106 #include "chrome/common/print_messages.h" |
107 | 107 |
108 #if defined(ENABLE_PRINT_PREVIEW) | 108 #if defined(ENABLE_PRINT_PREVIEW) |
109 #include "chrome/browser/printing/print_preview_context_menu_observer.h" | 109 #include "chrome/browser/printing/print_preview_context_menu_observer.h" |
110 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 110 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
111 #endif // defined(ENABLE_PRINT_PREVIEW) | 111 #endif // defined(ENABLE_PRINT_PREVIEW) |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 source_web_contents_->GetRenderViewHost()-> | 1783 source_web_contents_->GetRenderViewHost()-> |
1784 ExecuteMediaPlayerActionAtLocation(location, action); | 1784 ExecuteMediaPlayerActionAtLocation(location, action); |
1785 } | 1785 } |
1786 | 1786 |
1787 void RenderViewContextMenu::PluginActionAt( | 1787 void RenderViewContextMenu::PluginActionAt( |
1788 const gfx::Point& location, | 1788 const gfx::Point& location, |
1789 const WebPluginAction& action) { | 1789 const WebPluginAction& action) { |
1790 source_web_contents_->GetRenderViewHost()-> | 1790 source_web_contents_->GetRenderViewHost()-> |
1791 ExecutePluginActionAtLocation(location, action); | 1791 ExecutePluginActionAtLocation(location, action); |
1792 } | 1792 } |
OLD | NEW |