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

Side by Side Diff: ui/views/test/capture_tracking_view.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/views/shadow_border.h ('k') | ui/views/test/desktop_test_views_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_ 5 #ifndef UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
6 #define UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_ 6 #define UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
11 namespace views { 11 namespace views {
12 namespace test { 12 namespace test {
13 13
14 // Used to track OnMousePressed() and OnMouseCaptureLost(). 14 // Used to track OnMousePressed() and OnMouseCaptureLost().
15 class CaptureTrackingView : public views::View { 15 class CaptureTrackingView : public views::View {
16 public: 16 public:
17 CaptureTrackingView(); 17 CaptureTrackingView();
18 virtual ~CaptureTrackingView(); 18 virtual ~CaptureTrackingView();
19 19
20 // Returns true if OnMousePressed() has been invoked. 20 // Returns true if OnMousePressed() has been invoked.
21 bool got_press() const { return got_press_; } 21 bool got_press() const { return got_press_; }
22 22
23 // Returns true if OnMouseCaptureLost() has been invoked. 23 // Returns true if OnMouseCaptureLost() has been invoked.
24 bool got_capture_lost() const { return got_capture_lost_; } 24 bool got_capture_lost() const { return got_capture_lost_; }
25 25
26 void reset() { got_press_ = got_capture_lost_ = false; } 26 void reset() { got_press_ = got_capture_lost_ = false; }
27 27
28 // Overridden from views::View 28 // Overridden from views::View
29 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 29 virtual bool OnMousePressed(const ui::MouseEvent& event) override;
30 virtual void OnMouseCaptureLost() OVERRIDE; 30 virtual void OnMouseCaptureLost() override;
31 31
32 private: 32 private:
33 // See description above getters. 33 // See description above getters.
34 bool got_press_; 34 bool got_press_;
35 bool got_capture_lost_; 35 bool got_capture_lost_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(CaptureTrackingView); 37 DISALLOW_COPY_AND_ASSIGN(CaptureTrackingView);
38 }; 38 };
39 39
40 } // namespace test 40 } // namespace test
41 } // namespace views 41 } // namespace views
42 42
43 #endif // UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_ 43 #endif // UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_
OLDNEW
« no previous file with comments | « ui/views/shadow_border.h ('k') | ui/views/test/desktop_test_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698