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

Side by Side Diff: chrome/browser/chromeos/dbus/sensors_client.cc

Issue 8400062: Restore chrome/browser/ui/touch/animation/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/touch/animation/screen_rotation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/browser/chromeos/dbus/sensors_client.h" 5 #include "chrome/browser/chromeos/dbus/sensors_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/chromeos/system/runtime_environment.h" 9 #include "chrome/browser/chromeos/system/runtime_environment.h"
10 #include "content/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "content/browser/sensors/sensors_provider.h" 11 #include "content/browser/sensors/sensors_provider.h"
12 #include "dbus/bus.h" 12 #include "dbus/bus.h"
13 #include "dbus/message.h" 13 #include "dbus/message.h"
14 #include "dbus/object_proxy.h" 14 #include "dbus/object_proxy.h"
15 15
16 // TODO(cwolfe): Fix the DEPs so that these can be pulled in from 16 // TODO(cwolfe): Fix the DEPs so that these can be pulled in from
17 // "chromeos/dbus/service_constants.h". 17 // "chromeos/dbus/service_constants.h".
18 namespace chromeos { 18 namespace chromeos {
19 // Sensors service identifiers. 19 // Sensors service identifiers.
20 const char kSensorsServiceName[] = "org.chromium.Sensors"; 20 const char kSensorsServiceName[] = "org.chromium.Sensors";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 SensorsClient* SensorsClient::Create(dbus::Bus* bus) { 91 SensorsClient* SensorsClient::Create(dbus::Bus* bus) {
92 if (system::runtime_environment::IsRunningOnChromeOS()) { 92 if (system::runtime_environment::IsRunningOnChromeOS()) {
93 return new SensorsClientImpl(bus); 93 return new SensorsClientImpl(bus);
94 } else { 94 } else {
95 return new SensorsClientStubImpl(); 95 return new SensorsClientStubImpl();
96 } 96 }
97 } 97 }
98 98
99 } // namespace chromeos 99 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/touch/animation/screen_rotation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698