Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698