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 #ifndef WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ |
7 | 7 |
8 #include "ppapi/c/pp_point.h" | 8 #include "ppapi/c/pp_point.h" |
9 #include "ppapi/c/pp_rect.h" | 9 #include "ppapi/c/pp_rect.h" |
10 #include "ppapi/c/pp_size.h" | 10 #include "ppapi/c/pp_size.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 inline PP_Size PP_FromGfxSize(const gfx::Size& s) { | 41 inline PP_Size PP_FromGfxSize(const gfx::Size& s) { |
42 return PP_MakeSize(s.width(), s.height()); | 42 return PP_MakeSize(s.width(), s.height()); |
43 } | 43 } |
44 | 44 |
45 } // namespace ppapi | 45 } // namespace ppapi |
46 } // namespace webkit | 46 } // namespace webkit |
47 | 47 |
48 #endif // WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ | 48 #endif // WEBKIT_PLUGINS_PPAPI_GFX_CONVERSION_H_ |
OLD | NEW |