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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10826189: Allow disabling input throttle through RendererPreference (for Browser Plugin guests) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated according to darin@'s comments Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 mouse_lock_dispatcher_(NULL), 547 mouse_lock_dispatcher_(NULL),
548 session_storage_namespace_id_(session_storage_namespace_id), 548 session_storage_namespace_id_(session_storage_namespace_id),
549 handling_select_range_(false), 549 handling_select_range_(false),
550 #if defined(OS_WIN) 550 #if defined(OS_WIN)
551 focused_plugin_id_(-1), 551 focused_plugin_id_(-1),
552 #endif 552 #endif
553 guest_to_embedder_channel_(guest_to_embedder_channel), 553 guest_to_embedder_channel_(guest_to_embedder_channel),
554 guest_pp_instance_(0), 554 guest_pp_instance_(0),
555 guest_uninitialized_context_(NULL), 555 guest_uninitialized_context_(NULL),
556 ALLOW_THIS_IN_INITIALIZER_LIST(pepper_delegate_(this)) { 556 ALLOW_THIS_IN_INITIALIZER_LIST(pepper_delegate_(this)) {
557 set_throttle_input_events(renderer_prefs.throttle_input_events);
557 routing_id_ = routing_id; 558 routing_id_ = routing_id;
558 surface_id_ = surface_id; 559 surface_id_ = surface_id;
559 if (opener_id != MSG_ROUTING_NONE && is_renderer_created) 560 if (opener_id != MSG_ROUTING_NONE && is_renderer_created)
560 opener_id_ = opener_id; 561 opener_id_ = opener_id;
561 562
562 // Ensure we start with a valid next_page_id_ from the browser. 563 // Ensure we start with a valid next_page_id_ from the browser.
563 DCHECK_GE(next_page_id_, 0); 564 DCHECK_GE(next_page_id_, 0);
564 565
565 #if defined(ENABLE_NOTIFICATIONS) 566 #if defined(ENABLE_NOTIFICATIONS)
566 notification_provider_ = new NotificationProvider(this); 567 notification_provider_ = new NotificationProvider(this);
(...skipping 5200 matching lines...) Expand 10 before | Expand all | Expand 10 after
5767 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5768 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5768 return !!RenderThreadImpl::current()->compositor_thread(); 5769 return !!RenderThreadImpl::current()->compositor_thread();
5769 } 5770 }
5770 5771
5771 void RenderViewImpl::OnJavaBridgeInit() { 5772 void RenderViewImpl::OnJavaBridgeInit() {
5772 DCHECK(!java_bridge_dispatcher_); 5773 DCHECK(!java_bridge_dispatcher_);
5773 #if defined(ENABLE_JAVA_BRIDGE) 5774 #if defined(ENABLE_JAVA_BRIDGE)
5774 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5775 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5775 #endif 5776 #endif
5776 } 5777 }
OLDNEW
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698