Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / panels / test_panel_mouse_watcher.h
blob9bee22f5ba84515f0f6874a955a3a84495f551ae
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
6 #define CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h"
10 #include "ui/gfx/point.h"
12 // Test mouse watcher for simulating mouse movements in tests.
13 class TestPanelMouseWatcher : public PanelMouseWatcher {
14 public:
15 TestPanelMouseWatcher();
16 virtual ~TestPanelMouseWatcher();
18 private:
19 virtual void Start() OVERRIDE;
20 virtual void Stop() OVERRIDE;
21 virtual bool IsActive() const OVERRIDE;
23 virtual void NotifyMouseMovement(const gfx::Point& mouse_position) OVERRIDE;
24 virtual gfx::Point GetMousePosition() const OVERRIDE;
26 bool started_;
27 gfx::Point mouse_position_;
28 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher);
31 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_