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

Side by Side Diff: ppapi/shared_impl/time_conversion.h

Issue 7687005: Create ppapi_proxy.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/scoped_pp_resource.h ('k') | ppapi/shared_impl/tracker_base.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 #ifndef PPAPI_SHARED_IMPL_TIME_CONVERSION_H_ 5 #ifndef PPAPI_SHARED_IMPL_TIME_CONVERSION_H_
6 #define PPAPI_SHARED_IMPL_TIME_CONVERSION_H_ 6 #define PPAPI_SHARED_IMPL_TIME_CONVERSION_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "ppapi/c/pp_time.h" 9 #include "ppapi/c/pp_time.h"
10 #include "ppapi/shared_impl/ppapi_shared_export.h"
10 11
11 namespace ppapi { 12 namespace ppapi {
12 13
13 PP_Time TimeToPPTime(base::Time t); 14 PPAPI_SHARED_EXPORT PP_Time TimeToPPTime(base::Time t);
14 base::Time PPTimeToTime(PP_Time t); 15 PPAPI_SHARED_EXPORT base::Time PPTimeToTime(PP_Time t);
15 16
16 PP_TimeTicks TimeTicksToPPTimeTicks(base::TimeTicks t); 17 PPAPI_SHARED_EXPORT PP_TimeTicks TimeTicksToPPTimeTicks(base::TimeTicks t);
17 18
18 // Converts between WebKit event times and time ticks. WebKit event times are 19 // Converts between WebKit event times and time ticks. WebKit event times are
19 // currently expressed in terms of wall clock time. This function does the 20 // currently expressed in terms of wall clock time. This function does the
20 // proper mapping to time ticks, assuming the wall clock time doesn't change 21 // proper mapping to time ticks, assuming the wall clock time doesn't change
21 // (which isn't necessarily the case). 22 // (which isn't necessarily the case).
22 PP_TimeTicks EventTimeToPPTimeTicks(double event_time); 23 PPAPI_SHARED_EXPORT PP_TimeTicks EventTimeToPPTimeTicks(double event_time);
23 double PPTimeTicksToEventTime(PP_TimeTicks t); 24 PPAPI_SHARED_EXPORT double PPTimeTicksToEventTime(PP_TimeTicks t);
24 25
25 } // namespace ppapi 26 } // namespace ppapi
26 27
27 #endif // PPAPI_SHARED_IMPL_TIME_CONVERSION_H_ 28 #endif // PPAPI_SHARED_IMPL_TIME_CONVERSION_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/scoped_pp_resource.h ('k') | ppapi/shared_impl/tracker_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698