OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_MOUSE_WATCHER_H_ | 5 #ifndef VIEWS_MOUSE_WATCHER_H_ |
6 #define VIEWS_MOUSE_WATCHER_H_ | 6 #define VIEWS_MOUSE_WATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 class View; | 15 class View; |
16 | 16 |
17 // MouseWatcherListener is notified when the mouse moves outside the view. | 17 // MouseWatcherListener is notified when the mouse moves outside the view. |
18 class MouseWatcherListener { | 18 class MouseWatcherListener { |
19 public: | 19 public: |
20 virtual void MouseMovedOutOfView() = 0; | 20 virtual void MouseMovedOutOfView() = 0; |
21 | 21 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // See description above setter. | 74 // See description above setter. |
75 int notify_on_exit_time_ms_; | 75 int notify_on_exit_time_ms_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); | 77 DISALLOW_COPY_AND_ASSIGN(MouseWatcher); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace views | 80 } // namespace views |
81 | 81 |
82 #endif // VIEWS_MOUSE_WATCHER_H_ | 82 #endif // VIEWS_MOUSE_WATCHER_H_ |
OLD | NEW |