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

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

Issue 10384192: Prevent title-only panel from fully minimizing when attention is cleared if mouse is in the panel o… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment changed Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" 10 #include "chrome/browser/ui/panels/panel_mouse_watcher.h"
11 #include "ui/gfx/point.h"
11 12
12 // Test mouse watcher for simulating mouse movements in tests. 13 // Test mouse watcher for simulating mouse movements in tests.
13 class TestPanelMouseWatcher : public PanelMouseWatcher { 14 class TestPanelMouseWatcher : public PanelMouseWatcher {
14 public: 15 public:
15 TestPanelMouseWatcher(); 16 TestPanelMouseWatcher();
16 virtual ~TestPanelMouseWatcher(); 17 virtual ~TestPanelMouseWatcher();
17 18
18 private: 19 private:
19 virtual void Start() OVERRIDE; 20 virtual void Start() OVERRIDE;
20 virtual void Stop() OVERRIDE; 21 virtual void Stop() OVERRIDE;
21 virtual bool IsActive() const OVERRIDE; 22 virtual bool IsActive() const OVERRIDE;
22 23
24 virtual void NotifyMouseMovement(const gfx::Point& mouse_position) OVERRIDE;
25 virtual gfx::Point GetMousePosition() const OVERRIDE;
26
23 bool started_; 27 bool started_;
28 gfx::Point mouse_position_;
24 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher); 29 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher);
25 }; 30 };
26 31
27 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ 32 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_mouse_watcher_timer.cc ('k') | chrome/browser/ui/panels/test_panel_mouse_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698