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 #include "views/touchui/gesture_manager.h" | 5 #include "views/touchui/gesture_manager.h" |
6 #ifndef NDEBUG | 6 #ifndef NDEBUG |
7 #include <iostream> | 7 #include <iostream> |
8 #endif | 8 #endif |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "views/event.h" | 11 #include "views/event.h" |
12 #include "views/view.h" | 12 #include "views/view.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 GestureManager::~GestureManager() { | 16 GestureManager::~GestureManager() { |
17 } | 17 } |
18 | 18 |
19 GestureManager* GestureManager::Get() { | 19 GestureManager* GestureManager::GetInstance() { |
20 return Singleton<GestureManager>::get(); | 20 return Singleton<GestureManager>::get(); |
21 } | 21 } |
22 | 22 |
23 bool GestureManager::ProcessTouchEventForGesture(const TouchEvent& event, | 23 bool GestureManager::ProcessTouchEventForGesture(const TouchEvent& event, |
24 View* source, | 24 View* source, |
25 bool previouslyHandled) { | 25 bool previouslyHandled) { |
26 // TODO(rjkroege): A realistic version of the GestureManager will | 26 // TODO(rjkroege): A realistic version of the GestureManager will |
27 // appear in a subsequent CL. This interim version permits verifying that the | 27 // appear in a subsequent CL. This interim version permits verifying that the |
28 // event distribution code works by turning all touch inputs into | 28 // event distribution code works by turning all touch inputs into |
29 // mouse approximations. | 29 // mouse approximations. |
(...skipping 22 matching lines...) Expand all Loading... |
52 } | 52 } |
53 | 53 |
54 DVLOG(1) << "GestureManager::ProcessTouchEventForGesture: unhandled event"; | 54 DVLOG(1) << "GestureManager::ProcessTouchEventForGesture: unhandled event"; |
55 return false; | 55 return false; |
56 } | 56 } |
57 | 57 |
58 GestureManager::GestureManager() { | 58 GestureManager::GestureManager() { |
59 } | 59 } |
60 | 60 |
61 } // namespace views | 61 } // namespace views |
OLD | NEW |