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

Unified Diff: content/common/content_param_traits.h

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: merge Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/accessibility_mode_enums.h ('k') | content/common/content_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_param_traits.h
diff --git a/content/common/content_param_traits.h b/content/common/content_param_traits.h
index c20b75d1b8abae96f96ba24b020730b8268afc5a..640207ca8bc6c47c55360042e84a936333a139d2 100644
--- a/content/common/content_param_traits.h
+++ b/content/common/content_param_traits.h
@@ -19,6 +19,7 @@
#include "third_party/WebKit/public/platform/WebInputEvent.h"
namespace content {
+class AccessibilityMode;
class MessagePort;
}
@@ -61,6 +62,17 @@ struct CONTENT_EXPORT ParamTraits<content::MessagePort> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct CONTENT_EXPORT ParamTraits<content::AccessibilityMode> {
+ typedef content::AccessibilityMode param_type;
+ static void GetSize(base::PickleSizer* sizer, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_
« no previous file with comments | « content/common/accessibility_mode_enums.h ('k') | content/common/content_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698