OLD | NEW |
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 UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ | 5 #ifndef UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ |
6 #define UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ | 6 #define UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/views/mouse_watcher.h" | 9 #include "ui/views/mouse_watcher.h" |
9 | 10 |
10 namespace views { | 11 namespace views { |
11 | 12 |
12 class View; | 13 class View; |
13 | 14 |
14 class VIEWS_EXPORT MouseWatcherViewHost : public MouseWatcherHost { | 15 class VIEWS_EXPORT MouseWatcherViewHost : public MouseWatcherHost { |
15 public: | 16 public: |
16 // Creates a new MouseWatcherViewHost. |hot_zone_insets| is added to the | 17 // Creates a new MouseWatcherViewHost. |hot_zone_insets| is added to the |
17 // bounds of the view to determine the active zone. For example, if | 18 // bounds of the view to determine the active zone. For example, if |
(...skipping 14 matching lines...) Expand all Loading... |
32 View* view_; | 33 View* view_; |
33 // Insets added to the bounds of the view. | 34 // Insets added to the bounds of the view. |
34 const gfx::Insets hot_zone_insets_; | 35 const gfx::Insets hot_zone_insets_; |
35 | 36 |
36 DISALLOW_COPY_AND_ASSIGN(MouseWatcherViewHost); | 37 DISALLOW_COPY_AND_ASSIGN(MouseWatcherViewHost); |
37 }; | 38 }; |
38 | 39 |
39 } // namespace views | 40 } // namespace views |
40 | 41 |
41 #endif // UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ | 42 #endif // UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_ |
OLD | NEW |