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

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

Issue 10908153: [Panel refactor] Deprecate old panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromeos test failure Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/panel_view.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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/panel_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698