ax_param_traits.h 729 B

123456789101112131415161718192021222324
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_
  5. #define UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_
  6. #include "ui/accessibility/ax_param_traits_macros.h"
  7. namespace IPC {
  8. template <>
  9. struct AX_EXPORT ParamTraits<ui::AXTreeID> {
  10. typedef ui::AXTreeID param_type;
  11. static void Write(base::Pickle* m, const param_type& p);
  12. static bool Read(const base::Pickle* m,
  13. base::PickleIterator* iter,
  14. param_type* r);
  15. static void Log(const param_type& p, std::string* l);
  16. };
  17. } // namespace IPC
  18. #endif // UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_