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

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

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/page_zoom.h" 25 #include "content/public/common/page_zoom.h"
26 #include "content/public/common/url_constants.h" 26 #include "content/public/common/url_constants.h"
27 #include "third_party/WebKit/public/web/WebInputEvent.h" 27 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
28 28
29 using content::WebContents; 29 using content::WebContents;
30 30
31 namespace content { 31 namespace content {
32 struct FrameNavigateParams; 32 struct FrameNavigateParams;
33 } 33 }
34 34
35 namespace guest_view { 35 namespace guest_view {
36 36
37 namespace { 37 namespace {
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size, 887 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size,
888 bool due_to_auto_resize) { 888 bool due_to_auto_resize) {
889 if (due_to_auto_resize) 889 if (due_to_auto_resize)
890 GuestSizeChangedDueToAutoSize(guest_size_, new_size); 890 GuestSizeChangedDueToAutoSize(guest_size_, new_size);
891 DispatchOnResizeEvent(guest_size_, new_size); 891 DispatchOnResizeEvent(guest_size_, new_size);
892 guest_size_ = new_size; 892 guest_size_ = new_size;
893 } 893 }
894 894
895 } // namespace guest_view 895 } // namespace guest_view
OLDNEW
« no previous file with comments | « components/guest_view/browser/DEPS ('k') | components/plugins/renderer/loadable_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698