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

Side by Side Diff: chrome/browser/ui/panels/test_panel_mouse_watcher.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
6 #define CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ 6 #define CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" 9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 11
12 // Test mouse watcher for simulating mouse movements in tests. 12 // Test mouse watcher for simulating mouse movements in tests.
13 class TestPanelMouseWatcher : public PanelMouseWatcher { 13 class TestPanelMouseWatcher : public PanelMouseWatcher {
14 public: 14 public:
15 TestPanelMouseWatcher(); 15 TestPanelMouseWatcher();
16 virtual ~TestPanelMouseWatcher(); 16 ~TestPanelMouseWatcher() override;
17 17
18 private: 18 private:
19 virtual void Start() override; 19 void Start() override;
20 virtual void Stop() override; 20 void Stop() override;
21 virtual bool IsActive() const override; 21 bool IsActive() const override;
22 22
23 virtual void NotifyMouseMovement(const gfx::Point& mouse_position) override; 23 void NotifyMouseMovement(const gfx::Point& mouse_position) override;
24 virtual gfx::Point GetMousePosition() const override; 24 gfx::Point GetMousePosition() const override;
25 25
26 bool started_; 26 bool started_;
27 gfx::Point mouse_position_; 27 gfx::Point mouse_position_;
28 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher); 28 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher);
29 }; 29 };
30 30
31 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ 31 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698