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

Side by Side Diff: content/renderer/pepper/gfx_conversion.h

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes 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) 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 CONTENT_RENDERER_PEPPER_GFX_CONVERSION_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_GFX_CONVERSION_H_
6 #define CONTENT_RENDERER_PEPPER_GFX_CONVERSION_H_ 6 #define CONTENT_RENDERER_PEPPER_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"
11 #include "ui/gfx/point.h" 11 #include "ui/gfx/geometry/point.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/rect_f.h" 13 #include "ui/gfx/rect_f.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 // Conversions for graphics types between our gfx library and PPAPI. 16 // Conversions for graphics types between our gfx library and PPAPI.
17 // The style of naming is to match the PP_Bool conversions. 17 // The style of naming is to match the PP_Bool conversions.
18 18
19 namespace content { 19 namespace content {
20 20
21 inline gfx::Point PP_ToGfxPoint(const PP_Point& p) { 21 inline gfx::Point PP_ToGfxPoint(const PP_Point& p) {
(...skipping 20 matching lines...) Expand all
42 return gfx::Size(s.width, s.height); 42 return gfx::Size(s.width, s.height);
43 } 43 }
44 44
45 inline PP_Size PP_FromGfxSize(const gfx::Size& s) { 45 inline PP_Size PP_FromGfxSize(const gfx::Size& s) {
46 return PP_MakeSize(s.width(), s.height()); 46 return PP_MakeSize(s.width(), s.height());
47 } 47 }
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_RENDERER_PEPPER_GFX_CONVERSION_H_ 51 #endif // CONTENT_RENDERER_PEPPER_GFX_CONVERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698