| 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 CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // |mouse_position| is in screen coordinates. | 38 // |mouse_position| is in screen coordinates. |
| 39 virtual void NotifyMouseMovement(const gfx::Point& mouse_position); | 39 virtual void NotifyMouseMovement(const gfx::Point& mouse_position); |
| 40 | 40 |
| 41 // Returns true if watching mouse movements. | 41 // Returns true if watching mouse movements. |
| 42 virtual bool IsActive() const = 0; | 42 virtual bool IsActive() const = 0; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 friend class PanelMouseWatcherTest; | 45 friend class PanelMouseWatcherTest; |
| 46 FRIEND_TEST_ALL_PREFIXES(PanelMouseWatcherTest, StartStopWatching); | 46 FRIEND_TEST_ALL_PREFIXES(PanelMouseWatcherTest, StartStopWatching); |
| 47 friend class BasePanelBrowserTest; | 47 friend class BasePanelBrowserTest; |
| 48 friend class OldBasePanelBrowserTest; | |
| 49 | 48 |
| 50 // Start/stop tracking mouse movements. | 49 // Start/stop tracking mouse movements. |
| 51 virtual void Start() = 0; | 50 virtual void Start() = 0; |
| 52 virtual void Stop() = 0; | 51 virtual void Stop() = 0; |
| 53 | 52 |
| 54 ObserverList<PanelMouseWatcherObserver> observers_; | 53 ObserverList<PanelMouseWatcherObserver> observers_; |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ | 56 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_ |
| OLD | NEW |