OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |