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

Unified Diff: content/common/input/input_param_traits.cc

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix owners Created 4 years, 7 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/input/input_param_traits.h ('k') | content/common/media/media_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/input_param_traits.cc
diff --git a/content/common/input/input_param_traits.cc b/content/common/input/input_param_traits.cc
index a9f7a0d50f1a06efb1f2d5ea27859b3d67666f1d..72810bfb0c4f99e6ac9318c1fe0316b8aedc2d39 100644
--- a/content/common/input/input_param_traits.cc
+++ b/content/common/input/input_param_traits.cc
@@ -28,6 +28,14 @@ std::unique_ptr<content::SyntheticGestureParams> ReadGestureParams(
}
} // namespace
+void ParamTraits<content::ScopedWebInputEvent>::GetSize(base::PickleSizer* s,
+ const param_type& p) {
+ bool valid_web_event = !!p;
+ GetParamSize(s, valid_web_event);
+ if (valid_web_event)
+ GetParamSize(s, static_cast<WebInputEventPointer>(p.get()));
+}
+
void ParamTraits<content::ScopedWebInputEvent>::Write(base::Pickle* m,
const param_type& p) {
bool valid_web_event = !!p;
« no previous file with comments | « content/common/input/input_param_traits.h ('k') | content/common/media/media_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698