| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 using content::RenderThread; | 280 using content::RenderThread; |
| 281 using content::RenderViewObserver; | 281 using content::RenderViewObserver; |
| 282 using content::RenderViewVisitor; | 282 using content::RenderViewVisitor; |
| 283 using content::Referrer; | 283 using content::Referrer; |
| 284 using content::V8ValueConverter; | 284 using content::V8ValueConverter; |
| 285 using webkit::forms::FormField; | 285 using webkit::forms::FormField; |
| 286 using webkit::forms::PasswordForm; | 286 using webkit::forms::PasswordForm; |
| 287 using webkit::forms::PasswordFormDomManager; | 287 using webkit::forms::PasswordFormDomManager; |
| 288 using webkit_glue::AltErrorPageResourceFetcher; | 288 using webkit_glue::AltErrorPageResourceFetcher; |
| 289 using webkit_glue::ResourceFetcher; | 289 using webkit_glue::ResourceFetcher; |
| 290 using webkit_glue::WebPreferences; |
| 290 using webkit_glue::WebURLResponseExtraDataImpl; | 291 using webkit_glue::WebURLResponseExtraDataImpl; |
| 291 | 292 |
| 292 //----------------------------------------------------------------------------- | 293 //----------------------------------------------------------------------------- |
| 293 | 294 |
| 294 typedef std::map<WebKit::WebView*, RenderViewImpl*> ViewMap; | 295 typedef std::map<WebKit::WebView*, RenderViewImpl*> ViewMap; |
| 295 static base::LazyInstance<ViewMap> g_view_map = LAZY_INSTANCE_INITIALIZER; | 296 static base::LazyInstance<ViewMap> g_view_map = LAZY_INSTANCE_INITIALIZER; |
| 296 | 297 |
| 297 // Time, in seconds, we delay before sending content state changes (such as form | 298 // Time, in seconds, we delay before sending content state changes (such as form |
| 298 // state and scroll position) to the browser. We delay sending changes to avoid | 299 // state and scroll position) to the browser. We delay sending changes to avoid |
| 299 // spamming the browser. | 300 // spamming the browser. |
| (...skipping 4999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5299 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5300 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5300 return !!RenderThreadImpl::current()->compositor_thread(); | 5301 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5301 } | 5302 } |
| 5302 | 5303 |
| 5303 void RenderViewImpl::OnJavaBridgeInit() { | 5304 void RenderViewImpl::OnJavaBridgeInit() { |
| 5304 DCHECK(!java_bridge_dispatcher_.get()); | 5305 DCHECK(!java_bridge_dispatcher_.get()); |
| 5305 #if defined(ENABLE_JAVA_BRIDGE) | 5306 #if defined(ENABLE_JAVA_BRIDGE) |
| 5306 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 5307 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
| 5307 #endif | 5308 #endif |
| 5308 } | 5309 } |
| OLD | NEW |