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

Unified Diff: chrome/browser/ui/panels/panel_mouse_watcher.h

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/panel_mouse_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_mouse_watcher.h
diff --git a/chrome/browser/ui/panels/panel_mouse_watcher.h b/chrome/browser/ui/panels/panel_mouse_watcher.h
deleted file mode 100644
index 3d69d074984b0809b661a5b554ccf7b6f61814fa..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/panels/panel_mouse_watcher.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_
-#define CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_
-
-#include "base/gtest_prod_util.h"
-#include "base/observer_list.h"
-
-namespace gfx {
-class Point;
-}
-
-class PanelMouseWatcherObserver;
-
-// This is the base class for functionality to watch for mouse movements.
-// The specific implementation of this abstract class differ in how they
-// track mouse movements.
-class PanelMouseWatcher {
- public:
- // Returns an instance of the platform specific implementation.
- static PanelMouseWatcher* Create();
-
- // clang gives an error asking for an out of line destructor.
- virtual ~PanelMouseWatcher();
-
- void AddObserver(PanelMouseWatcherObserver* observer);
- void RemoveObserver(PanelMouseWatcherObserver* observer);
-
- // Returns current mouse position. This may be different from the
- // mouse position in NotifyMouseMovement.
- virtual gfx::Point GetMousePosition() const = 0;
-
- protected:
- PanelMouseWatcher();
-
- // |mouse_position| is in screen coordinates.
- virtual void NotifyMouseMovement(const gfx::Point& mouse_position);
-
- // Returns true if watching mouse movements.
- virtual bool IsActive() const = 0;
-
- private:
- friend class PanelMouseWatcherTest;
- FRIEND_TEST_ALL_PREFIXES(PanelMouseWatcherTest, StartStopWatching);
- friend class BasePanelBrowserTest;
-
- // Start/stop tracking mouse movements.
- virtual void Start() = 0;
- virtual void Stop() = 0;
-
- base::ObserverList<PanelMouseWatcherObserver> observers_;
-};
-
-#endif // CHROME_BROWSER_UI_PANELS_PANEL_MOUSE_WATCHER_H_
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/panel_mouse_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698