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

Side by Side Diff: ui/gfx/ipc/gfx_param_traits.h

Issue 1713723002: Implement accessibility support for CSS-transformed iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another skia dependency Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_GFX_IPC_GFX_PARAM_TRAITS_H_ 5 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_H_
6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_ 6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
(...skipping 11 matching lines...) Expand all
22 namespace gfx { 22 namespace gfx {
23 class Point; 23 class Point;
24 class PointF; 24 class PointF;
25 class Point3F; 25 class Point3F;
26 class Range; 26 class Range;
27 class Rect; 27 class Rect;
28 class RectF; 28 class RectF;
29 class ScrollOffset; 29 class ScrollOffset;
30 class Size; 30 class Size;
31 class SizeF; 31 class SizeF;
32 class Transform;
32 class Vector2d; 33 class Vector2d;
33 class Vector2dF; 34 class Vector2dF;
34 } // namespace gfx 35 } // namespace gfx
35 36
36 namespace IPC { 37 namespace IPC {
37 38
38 template <> 39 template <>
39 struct GFX_IPC_EXPORT ParamTraits<gfx::Point> { 40 struct GFX_IPC_EXPORT ParamTraits<gfx::Point> {
40 typedef gfx::Point param_type; 41 typedef gfx::Point param_type;
41 static void Write(base::Pickle* m, const param_type& p); 42 static void Write(base::Pickle* m, const param_type& p);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 template <> 153 template <>
153 struct GFX_IPC_EXPORT ParamTraits<gfx::ScrollOffset> { 154 struct GFX_IPC_EXPORT ParamTraits<gfx::ScrollOffset> {
154 typedef gfx::ScrollOffset param_type; 155 typedef gfx::ScrollOffset param_type;
155 static void Write(base::Pickle* m, const param_type& p); 156 static void Write(base::Pickle* m, const param_type& p);
156 static bool Read(const base::Pickle* m, 157 static bool Read(const base::Pickle* m,
157 base::PickleIterator* iter, 158 base::PickleIterator* iter,
158 param_type* r); 159 param_type* r);
159 static void Log(const param_type& p, std::string* l); 160 static void Log(const param_type& p, std::string* l);
160 }; 161 };
161 162
163 template <>
164 struct GFX_IPC_EXPORT ParamTraits<gfx::Transform> {
165 typedef gfx::Transform param_type;
166 static void Write(base::Pickle* m, const param_type& p);
167 static bool Read(const base::Pickle* m,
168 base::PickleIterator* iter,
169 param_type* r);
170 static void Log(const param_type& p, std::string* l);
171 };
172
162 #if defined(OS_MACOSX) && !defined(OS_IOS) 173 #if defined(OS_MACOSX) && !defined(OS_IOS)
163 template <> 174 template <>
164 struct GFX_IPC_EXPORT ParamTraits<gfx::ScopedRefCountedIOSurfaceMachPort> { 175 struct GFX_IPC_EXPORT ParamTraits<gfx::ScopedRefCountedIOSurfaceMachPort> {
165 typedef gfx::ScopedRefCountedIOSurfaceMachPort param_type; 176 typedef gfx::ScopedRefCountedIOSurfaceMachPort param_type;
166 static void Write(base::Pickle* m, const param_type p); 177 static void Write(base::Pickle* m, const param_type p);
167 // Note: Read() passes ownership of the Mach send right from the IPC message 178 // Note: Read() passes ownership of the Mach send right from the IPC message
168 // to the ScopedRefCountedIOSurfaceMachPort. Therefore, Read() may only be 179 // to the ScopedRefCountedIOSurfaceMachPort. Therefore, Read() may only be
169 // called once for a given message, otherwise the singular right will be 180 // called once for a given message, otherwise the singular right will be
170 // managed and released by two objects. 181 // managed and released by two objects.
171 static bool Read(const base::Pickle* m, 182 static bool Read(const base::Pickle* m,
172 base::PickleIterator* iter, 183 base::PickleIterator* iter,
173 param_type* r); 184 param_type* r);
174 static void Log(const param_type& p, std::string* l); 185 static void Log(const param_type& p, std::string* l);
175 }; 186 };
176 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 187 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
177 188
178 } // namespace IPC 189 } // namespace IPC
179 190
180 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_ 191 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698