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

Side by Side Diff: components/guest_view/browser/guest_view_base.cc

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the missing files Created 4 years, 3 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698