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

Unified Diff: ash/test/capture_tracking_view.h

Issue 11316287: Move WindowModalityController to CoreWm. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « ash/shell/window_type_launcher.cc ('k') | ash/test/capture_tracking_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/capture_tracking_view.h
===================================================================
--- ash/test/capture_tracking_view.h (revision 170620)
+++ ash/test/capture_tracking_view.h (working copy)
@@ -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 ASH_TEST_CAPTURE_TRACKING_VIEW_
-#define ASH_TEST_CAPTURE_TRACKING_VIEW_
-
-#include "base/compiler_specific.h"
-#include "ui/views/view.h"
-
-namespace ash {
-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 ash
-
-#endif // ASH_TEST_CAPTURE_TRACKING_VIEW_
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/test/capture_tracking_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698