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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.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 10 matching lines...) Expand all Loading... |
21 #include "base/sys_string_conversions.h" | 21 #include "base/sys_string_conversions.h" |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "chrome/common/autofill_messages.h" | 25 #include "chrome/common/autofill_messages.h" |
26 #include "chrome/common/bindings_policy.h" | 26 #include "chrome/common/bindings_policy.h" |
27 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_constants.h" | 28 #include "chrome/common/chrome_constants.h" |
29 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/clipboard_messages.h" | |
32 #include "chrome/common/extensions/extension.h" | 31 #include "chrome/common/extensions/extension.h" |
33 #include "chrome/common/extensions/extension_constants.h" | 32 #include "chrome/common/extensions/extension_constants.h" |
34 #include "chrome/common/extensions/extension_set.h" | 33 #include "chrome/common/extensions/extension_set.h" |
35 #include "chrome/common/json_value_serializer.h" | 34 #include "chrome/common/json_value_serializer.h" |
36 #include "chrome/common/jstemplate_builder.h" | 35 #include "chrome/common/jstemplate_builder.h" |
37 #include "chrome/common/page_zoom.h" | 36 #include "chrome/common/page_zoom.h" |
38 #include "chrome/common/pepper_messages.h" | |
39 #include "chrome/common/pepper_plugin_registry.h" | 37 #include "chrome/common/pepper_plugin_registry.h" |
40 #include "chrome/common/render_messages.h" | 38 #include "chrome/common/render_messages.h" |
41 #include "chrome/common/render_messages_params.h" | 39 #include "chrome/common/render_messages_params.h" |
42 #include "chrome/common/render_view_commands.h" | 40 #include "chrome/common/render_view_commands.h" |
43 #include "chrome/common/renderer_preferences.h" | 41 #include "chrome/common/renderer_preferences.h" |
44 #include "chrome/common/thumbnail_score.h" | 42 #include "chrome/common/thumbnail_score.h" |
45 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
46 #include "chrome/common/web_apps.h" | 44 #include "chrome/common/web_apps.h" |
47 #include "chrome/common/window_container_type.h" | 45 #include "chrome/common/window_container_type.h" |
48 #include "chrome/renderer/about_handler.h" | 46 #include "chrome/renderer/about_handler.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #include "chrome/renderer/translate_helper.h" | 91 #include "chrome/renderer/translate_helper.h" |
94 #include "chrome/renderer/user_script_idle_scheduler.h" | 92 #include "chrome/renderer/user_script_idle_scheduler.h" |
95 #include "chrome/renderer/user_script_slave.h" | 93 #include "chrome/renderer/user_script_slave.h" |
96 #include "chrome/renderer/visitedlink_slave.h" | 94 #include "chrome/renderer/visitedlink_slave.h" |
97 #include "chrome/renderer/web_ui_bindings.h" | 95 #include "chrome/renderer/web_ui_bindings.h" |
98 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 96 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
99 #include "chrome/renderer/webplugin_delegate_proxy.h" | 97 #include "chrome/renderer/webplugin_delegate_proxy.h" |
100 #include "chrome/renderer/websharedworker_proxy.h" | 98 #include "chrome/renderer/websharedworker_proxy.h" |
101 #include "chrome/renderer/webworker_proxy.h" | 99 #include "chrome/renderer/webworker_proxy.h" |
102 #include "content/common/appcache/appcache_dispatcher.h" | 100 #include "content/common/appcache/appcache_dispatcher.h" |
| 101 #include "content/common/clipboard_messages.h" |
103 #include "content/common/content_constants.h" | 102 #include "content/common/content_constants.h" |
104 #include "content/common/database_messages.h" | 103 #include "content/common/database_messages.h" |
105 #include "content/common/file_system/file_system_dispatcher.h" | 104 #include "content/common/file_system/file_system_dispatcher.h" |
106 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 105 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
107 #include "content/common/notification_service.h" | 106 #include "content/common/notification_service.h" |
| 107 #include "content/common/pepper_messages.h" |
108 #include "grit/generated_resources.h" | 108 #include "grit/generated_resources.h" |
109 #include "grit/renderer_resources.h" | 109 #include "grit/renderer_resources.h" |
110 #include "media/base/filter_collection.h" | 110 #include "media/base/filter_collection.h" |
111 #include "media/base/media_switches.h" | 111 #include "media/base/media_switches.h" |
112 #include "media/base/message_loop_factory_impl.h" | 112 #include "media/base/message_loop_factory_impl.h" |
113 #include "net/base/data_url.h" | 113 #include "net/base/data_url.h" |
114 #include "net/base/escape.h" | 114 #include "net/base/escape.h" |
115 #include "net/base/net_errors.h" | 115 #include "net/base/net_errors.h" |
116 #include "net/http/http_util.h" | 116 #include "net/http/http_util.h" |
117 #include "ppapi/c/private/ppb_flash_net_connector.h" | 117 #include "ppapi/c/private/ppb_flash_net_connector.h" |
(...skipping 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5605 const webkit_glue::CustomContextMenuContext& custom_context) { | 5605 const webkit_glue::CustomContextMenuContext& custom_context) { |
5606 if (custom_context.is_pepper_menu) | 5606 if (custom_context.is_pepper_menu) |
5607 pepper_delegate_.OnContextMenuClosed(custom_context); | 5607 pepper_delegate_.OnContextMenuClosed(custom_context); |
5608 else | 5608 else |
5609 context_menu_node_.reset(); | 5609 context_menu_node_.reset(); |
5610 } | 5610 } |
5611 | 5611 |
5612 void RenderView::OnNetworkStateChanged(bool online) { | 5612 void RenderView::OnNetworkStateChanged(bool online) { |
5613 WebNetworkStateNotifier::setOnLine(online); | 5613 WebNetworkStateNotifier::setOnLine(online); |
5614 } | 5614 } |
OLD | NEW |