| 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 "components/guest_view/browser/guest_view_base.h" | 5 #include "components/guest_view/browser/guest_view_base.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "components/guest_view/browser/guest_view_event.h" | 13 #include "components/guest_view/browser/guest_view_event.h" |
| 14 #include "components/guest_view/browser/guest_view_manager.h" | 14 #include "components/guest_view/browser/guest_view_manager.h" |
| 15 #include "components/guest_view/common/guest_view_constants.h" | 15 #include "components/guest_view/common/guest_view_constants.h" |
| 16 #include "components/guest_view/common/guest_view_messages.h" | 16 #include "components/guest_view/common/guest_view_messages.h" |
| 17 #include "components/zoom/page_zoom.h" | 17 #include "components/zoom/page_zoom.h" |
| 18 #include "components/zoom/zoom_controller.h" | 18 #include "components/zoom/zoom_controller.h" |
| 19 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
| 20 #include "content/public/browser/render_frame_host.h" | 20 #include "content/public/browser/render_frame_host.h" |
| 21 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
| 22 #include "content/public/browser/render_view_host.h" | 22 #include "content/public/browser/render_view_host.h" |
| 23 #include "content/public/browser/render_widget_host_view.h" | 23 #include "content/public/browser/render_widget_host_view.h" |
| 24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 25 #include "content/public/common/browser_plugin_guest_mode.h" | |
| 26 #include "content/public/common/page_zoom.h" | 25 #include "content/public/common/page_zoom.h" |
| 27 #include "content/public/common/url_constants.h" | 26 #include "content/public/common/url_constants.h" |
| 28 #include "third_party/WebKit/public/web/WebInputEvent.h" | 27 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 29 | 28 |
| 30 using content::WebContents; | 29 using content::WebContents; |
| 31 | 30 |
| 32 namespace content { | 31 namespace content { |
| 33 struct FrameNavigateParams; | 32 struct FrameNavigateParams; |
| 34 } | 33 } |
| 35 | 34 |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 | 886 |
| 888 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size, | 887 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size, |
| 889 bool due_to_auto_resize) { | 888 bool due_to_auto_resize) { |
| 890 if (due_to_auto_resize) | 889 if (due_to_auto_resize) |
| 891 GuestSizeChangedDueToAutoSize(guest_size_, new_size); | 890 GuestSizeChangedDueToAutoSize(guest_size_, new_size); |
| 892 DispatchOnResizeEvent(guest_size_, new_size); | 891 DispatchOnResizeEvent(guest_size_, new_size); |
| 893 guest_size_ = new_size; | 892 guest_size_ = new_size; |
| 894 } | 893 } |
| 895 | 894 |
| 896 } // namespace guest_view | 895 } // namespace guest_view |
| OLD | NEW |