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 CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace views { | 9 namespace views { |
10 class MouseEvent; | 10 class Event; |
11 } | 11 } |
12 | 12 |
13 namespace event_utils { | 13 namespace event_utils { |
14 | 14 |
15 // Returns true if the specified mouse event may have a | 15 // Returns true if the specified event may have a |
16 // WindowOptionDisposition. | 16 // WindowOptionDisposition. |
17 bool IsPossibleDispositionEvent(const views::MouseEvent& event); | 17 bool IsPossibleDispositionEvent(const views::Event& event); |
18 | 18 |
19 } // namespace event_utils | 19 } // namespace event_utils |
20 | 20 |
21 #endif // CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ | 21 #endif // CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H_ |
OLD | NEW |