OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_CAPTURE_TRACKING_VIEW_ | 5 #ifndef ASH_TEST_CAPTURE_TRACKING_VIEW_ |
6 #define ASH_TEST_CAPTURE_TRACKING_VIEW_ | 6 #define ASH_TEST_CAPTURE_TRACKING_VIEW_ |
7 #pragma once | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
11 | 10 |
12 namespace ash { | 11 namespace ash { |
13 namespace test { | 12 namespace test { |
14 | 13 |
15 // Used to track OnMousePressed() and OnMouseCaptureLost(). | 14 // Used to track OnMousePressed() and OnMouseCaptureLost(). |
16 class CaptureTrackingView : public views::View { | 15 class CaptureTrackingView : public views::View { |
17 public: | 16 public: |
(...skipping 17 matching lines...) Expand all Loading... |
35 bool got_press_; | 34 bool got_press_; |
36 bool got_capture_lost_; | 35 bool got_capture_lost_; |
37 | 36 |
38 DISALLOW_COPY_AND_ASSIGN(CaptureTrackingView); | 37 DISALLOW_COPY_AND_ASSIGN(CaptureTrackingView); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace test | 40 } // namespace test |
42 } // namespace ash | 41 } // namespace ash |
43 | 42 |
44 #endif // ASH_TEST_CAPTURE_TRACKING_VIEW_ | 43 #endif // ASH_TEST_CAPTURE_TRACKING_VIEW_ |
OLD | NEW |