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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2708613002: Add EventForwarder for routing touch events (Closed)
Patch Set: rebased Created 3 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 #include "net/http/http_cache.h" 130 #include "net/http/http_cache.h"
131 #include "net/http/http_transaction_factory.h" 131 #include "net/http/http_transaction_factory.h"
132 #include "net/url_request/url_request_context.h" 132 #include "net/url_request/url_request_context.h"
133 #include "net/url_request/url_request_context_getter.h" 133 #include "net/url_request/url_request_context_getter.h"
134 #include "ppapi/features/features.h" 134 #include "ppapi/features/features.h"
135 #include "services/service_manager/public/cpp/interface_provider.h" 135 #include "services/service_manager/public/cpp/interface_provider.h"
136 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" 136 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
137 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 137 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
138 #include "third_party/skia/include/core/SkBitmap.h" 138 #include "third_party/skia/include/core/SkBitmap.h"
139 #include "ui/accessibility/ax_tree_combiner.h" 139 #include "ui/accessibility/ax_tree_combiner.h"
140 #include "ui/android/event_handler.h"
140 #include "ui/base/layout.h" 141 #include "ui/base/layout.h"
141 #include "ui/events/blink/web_input_event_traits.h" 142 #include "ui/events/blink/web_input_event_traits.h"
142 #include "ui/gl/gl_switches.h" 143 #include "ui/gl/gl_switches.h"
143 144
144 #if defined(OS_WIN) 145 #if defined(OS_WIN)
145 #include "content/browser/renderer_host/dip_util.h" 146 #include "content/browser/renderer_host/dip_util.h"
146 #include "ui/gfx/geometry/dip_util.h" 147 #include "ui/gfx/geometry/dip_util.h"
147 #endif 148 #endif
148 149
149 #if defined(OS_ANDROID) 150 #if defined(OS_ANDROID)
(...skipping 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5302 5303
5303 void WebContentsImpl::SetHasPersistentVideo(bool value) { 5304 void WebContentsImpl::SetHasPersistentVideo(bool value) {
5304 if (has_persistent_video_ == value) 5305 if (has_persistent_video_ == value)
5305 return; 5306 return;
5306 5307
5307 has_persistent_video_ = value; 5308 has_persistent_video_ = value;
5308 NotifyPreferencesChanged(); 5309 NotifyPreferencesChanged();
5309 } 5310 }
5310 5311
5311 #if defined(OS_ANDROID) 5312 #if defined(OS_ANDROID)
5313 base::android::ScopedJavaLocalRef<jobject>
5314 WebContentsImpl::CreateJavaEventHandlerFromNative() {
5315 return GetNativeView()->CreateEventHandler()->CreateJavaObject();
5316 }
5317
5312 void WebContentsImpl::NotifyFindMatchRectsReply( 5318 void WebContentsImpl::NotifyFindMatchRectsReply(
5313 int version, 5319 int version,
5314 const std::vector<gfx::RectF>& rects, 5320 const std::vector<gfx::RectF>& rects,
5315 const gfx::RectF& active_rect) { 5321 const gfx::RectF& active_rect) {
5316 if (delegate_) 5322 if (delegate_)
5317 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 5323 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
5318 } 5324 }
5319 #endif 5325 #endif
5320 5326
5321 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 5327 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
5443 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5449 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5444 if (!render_view_host) 5450 if (!render_view_host)
5445 continue; 5451 continue;
5446 render_view_host_set.insert(render_view_host); 5452 render_view_host_set.insert(render_view_host);
5447 } 5453 }
5448 for (RenderViewHost* render_view_host : render_view_host_set) 5454 for (RenderViewHost* render_view_host : render_view_host_set)
5449 render_view_host->OnWebkitPreferencesChanged(); 5455 render_view_host->OnWebkitPreferencesChanged();
5450 } 5456 }
5451 5457
5452 } // namespace content 5458 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698