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