910e62b5创建于 1月15日历史提交
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/test/capture_tracking_view.h"

#include "ui/base/metadata/metadata_impl_macros.h"

namespace views::test {

CaptureTrackingView::CaptureTrackingView() = default;

CaptureTrackingView::~CaptureTrackingView() = default;

bool CaptureTrackingView::OnMousePressed(const ui::MouseEvent& event) {
  got_press_ = true;
  return true;
}

void CaptureTrackingView::OnMouseCaptureLost() {
  got_capture_lost_ = true;
}

BEGIN_METADATA(CaptureTrackingView)
END_METADATA

}  // namespace views::test