| Index: ui/views/test/capture_tracking_view.h
|
| diff --git a/ui/views/test/capture_tracking_view.h b/ui/views/test/capture_tracking_view.h
|
| deleted file mode 100644
|
| index a80cab064dbe3f5bf99320fe59016dfc574d7292..0000000000000000000000000000000000000000
|
| --- a/ui/views/test/capture_tracking_view.h
|
| +++ /dev/null
|
| @@ -1,43 +0,0 @@
|
| -// Copyright (c) 2012 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.
|
| -
|
| -#ifndef UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
|
| -#define UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
|
| -
|
| -#include "base/compiler_specific.h"
|
| -#include "ui/views/view.h"
|
| -
|
| -namespace views {
|
| -namespace test {
|
| -
|
| -// Used to track OnMousePressed() and OnMouseCaptureLost().
|
| -class CaptureTrackingView : public views::View {
|
| - public:
|
| - CaptureTrackingView();
|
| - virtual ~CaptureTrackingView();
|
| -
|
| - // Returns true if OnMousePressed() has been invoked.
|
| - bool got_press() const { return got_press_; }
|
| -
|
| - // Returns true if OnMouseCaptureLost() has been invoked.
|
| - bool got_capture_lost() const { return got_capture_lost_; }
|
| -
|
| - void reset() { got_press_ = got_capture_lost_ = false; }
|
| -
|
| - // Overridden from views::View
|
| - virtual bool OnMousePressed(const ui::MouseEvent& event) override;
|
| - virtual void OnMouseCaptureLost() override;
|
| -
|
| - private:
|
| - // See description above getters.
|
| - bool got_press_;
|
| - bool got_capture_lost_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(CaptureTrackingView);
|
| -};
|
| -
|
| -} // namespace test
|
| -} // namespace views
|
| -
|
| -#endif // UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
|
|
|