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 "build/build_config.h" |
8 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 9 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
9 #include "chrome/browser/favicon/favicon_utils.h" | 10 #include "chrome/browser/favicon/favicon_utils.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 12 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
12 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 13 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
13 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
14 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" | 15 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" |
15 #include "components/guest_view/browser/guest_view_event.h" | 16 #include "components/guest_view/browser/guest_view_event.h" |
16 #include "components/renderer_context_menu/context_menu_delegate.h" | 17 #include "components/renderer_context_menu/context_menu_delegate.h" |
17 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 void ChromeWebViewGuestDelegate::SetContextMenuPosition( | 154 void ChromeWebViewGuestDelegate::SetContextMenuPosition( |
154 const gfx::Point& position) { | 155 const gfx::Point& position) { |
155 if (context_menu_position_ == nullptr) | 156 if (context_menu_position_ == nullptr) |
156 context_menu_position_.reset(new gfx::Point()); | 157 context_menu_position_.reset(new gfx::Point()); |
157 | 158 |
158 *context_menu_position_ = position; | 159 *context_menu_position_ = position; |
159 } | 160 } |
160 | 161 |
161 } // namespace extensions | 162 } // namespace extensions |
OLD | NEW |