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 | 5 |
6 #include "chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h" | 6 #include "chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h" |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 13 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
14 #include "chrome/browser/favicon/favicon_utils.h" | 14 #include "chrome/browser/favicon/favicon_utils.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 16 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
17 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 17 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "components/browsing_data/content/storage_partition_http_cache_data_rem
over.h" | |
20 #include "components/guest_view/browser/guest_view_event.h" | 19 #include "components/guest_view/browser/guest_view_event.h" |
21 #include "components/renderer_context_menu/context_menu_delegate.h" | 20 #include "components/renderer_context_menu/context_menu_delegate.h" |
22 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
23 #include "extensions/browser/api/web_request/web_request_api.h" | 22 #include "extensions/browser/api/web_request/web_request_api.h" |
24 #include "extensions/browser/guest_view/web_view/web_view_constants.h" | 23 #include "extensions/browser/guest_view/web_view/web_view_constants.h" |
25 | 24 |
26 using guest_view::GuestViewEvent; | 25 using guest_view::GuestViewEvent; |
27 | 26 |
28 namespace extensions { | 27 namespace extensions { |
29 | 28 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 113 |
115 void ChromeWebViewGuestDelegate::SetContextMenuPosition( | 114 void ChromeWebViewGuestDelegate::SetContextMenuPosition( |
116 const gfx::Point& position) { | 115 const gfx::Point& position) { |
117 if (context_menu_position_ == nullptr) | 116 if (context_menu_position_ == nullptr) |
118 context_menu_position_.reset(new gfx::Point()); | 117 context_menu_position_.reset(new gfx::Point()); |
119 | 118 |
120 *context_menu_position_ = position; | 119 *context_menu_position_ = position; |
121 } | 120 } |
122 | 121 |
123 } // namespace extensions | 122 } // namespace extensions |
OLD | NEW |