OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/metrics/user_metrics.h" |
14 #include "base/pickle.h" | 15 #include "base/pickle.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
17 #include "cc/surfaces/surface.h" | 18 #include "cc/surfaces/surface.h" |
18 #include "cc/surfaces/surface_info.h" | 19 #include "cc/surfaces/surface_info.h" |
19 #include "cc/surfaces/surface_manager.h" | 20 #include "cc/surfaces/surface_manager.h" |
20 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 21 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
21 #include "content/browser/browser_thread_impl.h" | 22 #include "content/browser/browser_thread_impl.h" |
22 #include "content/browser/child_process_security_policy_impl.h" | 23 #include "content/browser/child_process_security_policy_impl.h" |
23 #include "content/browser/compositor/surface_utils.h" | 24 #include "content/browser/compositor/surface_utils.h" |
(...skipping 17 matching lines...) Expand all Loading... |
41 #include "content/common/text_input_state.h" | 42 #include "content/common/text_input_state.h" |
42 #include "content/common/view_messages.h" | 43 #include "content/common/view_messages.h" |
43 #include "content/public/browser/browser_context.h" | 44 #include "content/public/browser/browser_context.h" |
44 #include "content/public/browser/browser_plugin_guest_manager.h" | 45 #include "content/public/browser/browser_plugin_guest_manager.h" |
45 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
46 #include "content/public/browser/guest_host.h" | 47 #include "content/public/browser/guest_host.h" |
47 #include "content/public/browser/guest_mode.h" | 48 #include "content/public/browser/guest_mode.h" |
48 #include "content/public/browser/navigation_handle.h" | 49 #include "content/public/browser/navigation_handle.h" |
49 #include "content/public/browser/render_process_host.h" | 50 #include "content/public/browser/render_process_host.h" |
50 #include "content/public/browser/render_widget_host_view.h" | 51 #include "content/public/browser/render_widget_host_view.h" |
51 #include "content/public/browser/user_metrics.h" | |
52 #include "content/public/browser/web_contents_observer.h" | 52 #include "content/public/browser/web_contents_observer.h" |
53 #include "content/public/common/drop_data.h" | 53 #include "content/public/common/drop_data.h" |
54 #include "ui/events/blink/web_input_event_traits.h" | 54 #include "ui/events/blink/web_input_event_traits.h" |
55 #include "ui/gfx/geometry/size_conversions.h" | 55 #include "ui/gfx/geometry/size_conversions.h" |
56 | 56 |
57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
58 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h" | 58 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h" |
59 #include "content/common/frame_messages.h" | 59 #include "content/common/frame_messages.h" |
60 #endif | 60 #endif |
61 | 61 |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 range, character_bounds); | 1061 range, character_bounds); |
1062 } | 1062 } |
1063 #endif | 1063 #endif |
1064 | 1064 |
1065 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { | 1065 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { |
1066 if (delegate_) | 1066 if (delegate_) |
1067 delegate_->SetContextMenuPosition(position); | 1067 delegate_->SetContextMenuPosition(position); |
1068 } | 1068 } |
1069 | 1069 |
1070 } // namespace content | 1070 } // namespace content |
OLD | NEW |