delegated_ink_metadata.cc 772 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. #include "ui/gfx/delegated_ink_metadata.h"
  5. #include <inttypes.h>
  6. #include "base/strings/stringprintf.h"
  7. namespace gfx {
  8. std::string DelegatedInkMetadata::ToString() const {
  9. std::string str = base::StringPrintf(
  10. "point: %s, diameter: %f, color: %u, timestamp: %" PRId64
  11. ", presentation_area: %s, frame_time: %" PRId64 ", is_hovering: %d",
  12. point_.ToString().c_str(), diameter_, color_,
  13. timestamp_.since_origin().InMicroseconds(),
  14. presentation_area_.ToString().c_str(),
  15. frame_time_.since_origin().InMicroseconds(), is_hovering_);
  16. return str;
  17. }
  18. } // namespace gfx