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

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

Issue 2708613002: Add EventForwarder for routing touch events (Closed)
Patch Set: EventHandler 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 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5291 5292
5292 void WebContentsImpl::SetHasPersistentVideo(bool value) { 5293 void WebContentsImpl::SetHasPersistentVideo(bool value) {
5293 if (has_persistent_video_ == value) 5294 if (has_persistent_video_ == value)
5294 return; 5295 return;
5295 5296
5296 has_persistent_video_ = value; 5297 has_persistent_video_ = value;
5297 NotifyPreferencesChanged(); 5298 NotifyPreferencesChanged();
5298 } 5299 }
5299 5300
5300 #if defined(OS_ANDROID) 5301 #if defined(OS_ANDROID)
5302 base::android::ScopedJavaLocalRef<jobject>
5303 WebContentsImpl::CreateJavaEventHandlerFromNative() {
5304 return GetNativeView()->CreateEventHandler()->CreateJavaObject();
5305 }
5306
5301 void WebContentsImpl::NotifyFindMatchRectsReply( 5307 void WebContentsImpl::NotifyFindMatchRectsReply(
5302 int version, 5308 int version,
5303 const std::vector<gfx::RectF>& rects, 5309 const std::vector<gfx::RectF>& rects,
5304 const gfx::RectF& active_rect) { 5310 const gfx::RectF& active_rect) {
5305 if (delegate_) 5311 if (delegate_)
5306 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 5312 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
5307 } 5313 }
5308 #endif 5314 #endif
5309 5315
5310 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 5316 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
5432 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5438 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5433 if (!render_view_host) 5439 if (!render_view_host)
5434 continue; 5440 continue;
5435 render_view_host_set.insert(render_view_host); 5441 render_view_host_set.insert(render_view_host);
5436 } 5442 }
5437 for (RenderViewHost* render_view_host : render_view_host_set) 5443 for (RenderViewHost* render_view_host : render_view_host_set)
5438 render_view_host->OnWebkitPreferencesChanged(); 5444 render_view_host->OnWebkitPreferencesChanged();
5439 } 5445 }
5440 5446
5441 } // namespace content 5447 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698