| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/json/json_value_serializer.h" | 15 #include "base/json/json_value_serializer.h" |
| 16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
| 17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| 18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
| 19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
| 20 #include "base/process_util.h" | 20 #include "base/process_util.h" |
| 21 #include "base/string_piece.h" | 21 #include "base/string_piece.h" |
| 22 #include "base/string_split.h" | 22 #include "base/string_split.h" |
| 23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
| 24 #include "base/sys_string_conversions.h" | 24 #include "base/sys_string_conversions.h" |
| 25 #include "base/time.h" | 25 #include "base/time.h" |
| 26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
| 27 #include "content/common/appcache/appcache_dispatcher.h" | 27 #include "content/common/appcache/appcache_dispatcher.h" |
| 28 #include "content/common/clipboard_messages.h" | 28 #include "content/common/clipboard_messages.h" |
| 29 #include "content/common/content_constants.h" | 29 #include "content/common/content_constants.h" |
| 30 #include "content/common/content_switches.h" | |
| 31 #include "content/common/database_messages.h" | 30 #include "content/common/database_messages.h" |
| 32 #include "content/common/drag_messages.h" | 31 #include "content/common/drag_messages.h" |
| 33 #include "content/common/file_system/file_system_dispatcher.h" | 32 #include "content/common/file_system/file_system_dispatcher.h" |
| 34 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 33 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
| 35 #include "content/common/intents_messages.h" | 34 #include "content/common/intents_messages.h" |
| 36 #include "content/common/notification_service.h" | 35 #include "content/common/notification_service.h" |
| 37 #include "content/common/pepper_messages.h" | 36 #include "content/common/pepper_messages.h" |
| 38 #include "content/common/pepper_plugin_registry.h" | 37 #include "content/common/pepper_plugin_registry.h" |
| 39 #include "content/common/quota_dispatcher.h" | 38 #include "content/common/quota_dispatcher.h" |
| 40 #include "content/common/renderer_preferences.h" | 39 #include "content/common/renderer_preferences.h" |
| 41 #include "content/common/request_extra_data.h" | 40 #include "content/common/request_extra_data.h" |
| 42 #include "content/common/url_constants.h" | 41 #include "content/common/url_constants.h" |
| 43 #include "content/common/view_messages.h" | 42 #include "content/common/view_messages.h" |
| 44 #include "content/public/common/bindings_policy.h" | 43 #include "content/public/common/bindings_policy.h" |
| 44 #include "content/public/common/content_switches.h" |
| 45 #include "content/public/renderer/content_renderer_client.h" | 45 #include "content/public/renderer/content_renderer_client.h" |
| 46 #include "content/public/renderer/navigation_state.h" | 46 #include "content/public/renderer/navigation_state.h" |
| 47 #include "content/public/renderer/render_view_observer.h" | 47 #include "content/public/renderer/render_view_observer.h" |
| 48 #include "content/public/renderer/render_view_visitor.h" | 48 #include "content/public/renderer/render_view_visitor.h" |
| 49 #include "content/renderer/device_orientation_dispatcher.h" | 49 #include "content/renderer/device_orientation_dispatcher.h" |
| 50 #include "content/renderer/devtools_agent.h" | 50 #include "content/renderer/devtools_agent.h" |
| 51 #include "content/renderer/external_popup_menu.h" | 51 #include "content/renderer/external_popup_menu.h" |
| 52 #include "content/renderer/geolocation_dispatcher.h" | 52 #include "content/renderer/geolocation_dispatcher.h" |
| 53 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 53 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
| 54 #include "content/renderer/intents_dispatcher.h" | 54 #include "content/renderer/intents_dispatcher.h" |
| (...skipping 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4580 pepper_delegate_.OnLockMouseACK(succeeded); | 4580 pepper_delegate_.OnLockMouseACK(succeeded); |
| 4581 } | 4581 } |
| 4582 | 4582 |
| 4583 void RenderViewImpl::OnMouseLockLost() { | 4583 void RenderViewImpl::OnMouseLockLost() { |
| 4584 pepper_delegate_.OnMouseLockLost(); | 4584 pepper_delegate_.OnMouseLockLost(); |
| 4585 } | 4585 } |
| 4586 | 4586 |
| 4587 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 4587 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 4588 return webview()->settings()->useThreadedCompositor(); | 4588 return webview()->settings()->useThreadedCompositor(); |
| 4589 } | 4589 } |
| OLD | NEW |