summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/graphics/touch_action_rect.cc
blob: 1b18032e09f7ccf0ec30342106110b9d7d9df940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/graphics/touch_action_rect.h"

#include "cc/base/region.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

String TouchActionRect::ToString() const {
  return rect.ToString() + " " + cc::TouchActionToString(allowed_touch_action);
}

std::ostream& operator<<(std::ostream& os,
                         const TouchActionRect& hit_test_rect) {
  return os << hit_test_rect.ToString();
}

}  // namespace blink