Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: ui/views/test/capture_tracking_view.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/DEPS ('k') | ui/views/test/capture_tracking_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/views/test/DEPS ('k') | ui/views/test/capture_tracking_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698