Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: views/touchui/gesture_manager.cc

Issue 5696005: Fix GestureManager Singleton implementation (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/touchui/gesture_manager.h ('k') | views/widget/root_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « views/touchui/gesture_manager.h ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698