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/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 #include "content/child/web_database_observer_impl.h" | 26 #include "content/child/web_database_observer_impl.h" |
27 #include "content/child/webblobregistry_impl.h" | 27 #include "content/child/webblobregistry_impl.h" |
28 #include "content/child/webfileutilities_impl.h" | 28 #include "content/child/webfileutilities_impl.h" |
29 #include "content/child/webmessageportchannel_impl.h" | 29 #include "content/child/webmessageportchannel_impl.h" |
30 #include "content/common/file_utilities_messages.h" | 30 #include "content/common/file_utilities_messages.h" |
31 #include "content/common/gpu/client/context_provider_command_buffer.h" | 31 #include "content/common/gpu/client/context_provider_command_buffer.h" |
32 #include "content/common/gpu/client/gpu_channel_host.h" | 32 #include "content/common/gpu/client/gpu_channel_host.h" |
33 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 33 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
34 #include "content/common/gpu/gpu_process_launch_causes.h" | 34 #include "content/common/gpu/gpu_process_launch_causes.h" |
35 #include "content/common/mime_registry_messages.h" | 35 #include "content/common/mime_registry_messages.h" |
36 #include "content/common/screen_orientation_messages.h" | |
36 #include "content/common/view_messages.h" | 37 #include "content/common/view_messages.h" |
37 #include "content/public/common/content_switches.h" | 38 #include "content/public/common/content_switches.h" |
38 #include "content/public/common/webplugininfo.h" | 39 #include "content/public/common/webplugininfo.h" |
39 #include "content/public/renderer/content_renderer_client.h" | 40 #include "content/public/renderer/content_renderer_client.h" |
40 #include "content/renderer/battery_status/battery_status_dispatcher.h" | 41 #include "content/renderer/battery_status/battery_status_dispatcher.h" |
41 #include "content/renderer/battery_status/fake_battery_status_dispatcher.h" | 42 #include "content/renderer/battery_status/fake_battery_status_dispatcher.h" |
42 #include "content/renderer/device_sensors/device_light_event_pump.h" | 43 #include "content/renderer/device_sensors/device_light_event_pump.h" |
43 #include "content/renderer/device_sensors/device_motion_event_pump.h" | 44 #include "content/renderer/device_sensors/device_motion_event_pump.h" |
44 #include "content/renderer/device_sensors/device_orientation_event_pump.h" | 45 #include "content/renderer/device_sensors/device_orientation_event_pump.h" |
45 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 46 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1144 } | 1145 } |
1145 battery_status_dispatcher_->SetListener(listener); | 1146 battery_status_dispatcher_->SetListener(listener); |
1146 } | 1147 } |
1147 | 1148 |
1148 // static | 1149 // static |
1149 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( | 1150 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( |
1150 const blink::WebBatteryStatus& status) { | 1151 const blink::WebBatteryStatus& status) { |
1151 g_test_battery_status_dispatcher.Get().PostBatteryStatusChange(status); | 1152 g_test_battery_status_dispatcher.Get().PostBatteryStatusChange(status); |
1152 } | 1153 } |
1153 | 1154 |
1155 //------------------------------------------------------------------------------ | |
jam
2014/07/16 21:29:14
why?
mlamouri (slow - plz ping)
2014/07/17 09:44:16
This seems to be a convention in this file where t
jam
2014/07/17 17:19:51
this file's convention is wrong. some files have "
| |
1156 | |
1157 void RendererWebKitPlatformSupportImpl::startScreenOrientationListening() { | |
1158 RenderThread::Get()->Send(new ScreenOrientationHostMsg_StartListening()); | |
1159 } | |
1160 | |
1161 void RendererWebKitPlatformSupportImpl::stopScreenOrientationListening() { | |
1162 RenderThread::Get()->Send(new ScreenOrientationHostMsg_StopListening()); | |
1163 } | |
1164 | |
1154 } // namespace content | 1165 } // namespace content |
OLD | NEW |