Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 1808313002: Register surface namespace in BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Host surface_utils into chrome/public Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/pickle.h" 13 #include "base/pickle.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "cc/surfaces/surface.h" 16 #include "cc/surfaces/surface.h"
17 #include "cc/surfaces/surface_manager.h" 17 #include "cc/surfaces/surface_manager.h"
18 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 18 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
19 #include "content/browser/browser_thread_impl.h" 19 #include "content/browser/browser_thread_impl.h"
20 #include "content/browser/child_process_security_policy_impl.h" 20 #include "content/browser/child_process_security_policy_impl.h"
21 #include "content/browser/compositor/surface_utils.h"
22 #include "content/browser/frame_host/render_frame_host_impl.h" 21 #include "content/browser/frame_host/render_frame_host_impl.h"
23 #include "content/browser/frame_host/render_frame_proxy_host.h" 22 #include "content/browser/frame_host/render_frame_proxy_host.h"
24 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 23 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
25 #include "content/browser/frame_host/render_widget_host_view_guest.h" 24 #include "content/browser/frame_host/render_widget_host_view_guest.h"
26 #include "content/browser/loader/resource_dispatcher_host_impl.h" 25 #include "content/browser/loader/resource_dispatcher_host_impl.h"
27 #include "content/browser/renderer_host/render_view_host_impl.h" 26 #include "content/browser/renderer_host/render_view_host_impl.h"
28 #include "content/browser/renderer_host/render_widget_host_impl.h" 27 #include "content/browser/renderer_host/render_widget_host_impl.h"
29 #include "content/browser/renderer_host/render_widget_host_view_base.h" 28 #include "content/browser/renderer_host/render_widget_host_view_base.h"
30 #include "content/browser/web_contents/web_contents_impl.h" 29 #include "content/browser/web_contents/web_contents_impl.h"
31 #include "content/browser/web_contents/web_contents_view_guest.h" 30 #include "content/browser/web_contents/web_contents_view_guest.h"
32 #include "content/common/browser_plugin/browser_plugin_constants.h" 31 #include "content/common/browser_plugin/browser_plugin_constants.h"
33 #include "content/common/browser_plugin/browser_plugin_messages.h" 32 #include "content/common/browser_plugin/browser_plugin_messages.h"
34 #include "content/common/content_constants_internal.h" 33 #include "content/common/content_constants_internal.h"
35 #include "content/common/drag_messages.h" 34 #include "content/common/drag_messages.h"
36 #include "content/common/host_shared_bitmap_manager.h" 35 #include "content/common/host_shared_bitmap_manager.h"
37 #include "content/common/input_messages.h" 36 #include "content/common/input_messages.h"
38 #include "content/common/site_isolation_policy.h" 37 #include "content/common/site_isolation_policy.h"
39 #include "content/common/view_messages.h" 38 #include "content/common/view_messages.h"
40 #include "content/public/browser/browser_context.h" 39 #include "content/public/browser/browser_context.h"
41 #include "content/public/browser/browser_plugin_guest_manager.h" 40 #include "content/public/browser/browser_plugin_guest_manager.h"
42 #include "content/public/browser/content_browser_client.h" 41 #include "content/public/browser/content_browser_client.h"
43 #include "content/public/browser/guest_host.h" 42 #include "content/public/browser/guest_host.h"
44 #include "content/public/browser/render_widget_host_view.h" 43 #include "content/public/browser/render_widget_host_view.h"
44 #include "content/public/browser/surface_utils.h"
45 #include "content/public/browser/user_metrics.h" 45 #include "content/public/browser/user_metrics.h"
46 #include "content/public/browser/web_contents_observer.h" 46 #include "content/public/browser/web_contents_observer.h"
47 #include "content/public/common/browser_plugin_guest_mode.h" 47 #include "content/public/common/browser_plugin_guest_mode.h"
48 #include "content/public/common/drop_data.h" 48 #include "content/public/common/drop_data.h"
49 #include "ui/gfx/geometry/size_conversions.h" 49 #include "ui/gfx/geometry/size_conversions.h"
50 50
51 #if defined(OS_MACOSX) 51 #if defined(OS_MACOSX)
52 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h" 52 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h"
53 #include "content/common/frame_messages.h" 53 #include "content/common/frame_messages.h"
54 #endif 54 #endif
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 range, character_bounds); 1010 range, character_bounds);
1011 } 1011 }
1012 #endif 1012 #endif
1013 1013
1014 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { 1014 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) {
1015 if (delegate_) 1015 if (delegate_)
1016 delegate_->SetContextMenuPosition(position); 1016 delegate_->SetContextMenuPosition(position);
1017 } 1017 }
1018 1018
1019 } // namespace content 1019 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698