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

Side by Side Diff: views/event.h

Issue 3192002: Added entry points to view/View to dispatch and process TouchEvents. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: final changes Created 10 years, 3 months 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
« no previous file with comments | « no previous file | views/touchui/gesture_manager.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_EVENT_H_ 5 #ifndef VIEWS_EVENT_H_
6 #define VIEWS_EVENT_H_ 6 #define VIEWS_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/keyboard_codes.h" 9 #include "app/keyboard_codes.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // If from / to views are provided, the model location will be converted 283 // If from / to views are provided, the model location will be converted
284 // from 'from' coordinate system to 'to' coordinate system. 284 // from 'from' coordinate system to 'to' coordinate system.
285 TouchEvent(const TouchEvent& model, View* from, View* to); 285 TouchEvent(const TouchEvent& model, View* from, View* to);
286 286
287 // Return the touch point for this event. 287 // Return the touch point for this event.
288 bool identity() const { 288 bool identity() const {
289 return touch_id_; 289 return touch_id_;
290 } 290 }
291 291
292 private: 292 private:
293 // The identity (typically finger) of the touch. 293 // The identity (typically finger) of the touch starting at 0 and incrementing
294 // for each separable additional touch that the hardware can detect.
294 const int touch_id_; 295 const int touch_id_;
295 296
296 DISALLOW_COPY_AND_ASSIGN(TouchEvent); 297 DISALLOW_COPY_AND_ASSIGN(TouchEvent);
297 }; 298 };
298 #endif 299 #endif
299 300
300 //////////////////////////////////////////////////////////////////////////////// 301 ////////////////////////////////////////////////////////////////////////////////
301 // 302 //
302 // KeyEvent class 303 // KeyEvent class
303 // 304 //
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 private: 401 private:
401 const OSExchangeData& data_; 402 const OSExchangeData& data_;
402 int source_operations_; 403 int source_operations_;
403 404
404 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 405 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
405 }; 406 };
406 407
407 } // namespace views 408 } // namespace views
408 409
409 #endif // VIEWS_EVENT_H_ 410 #endif // VIEWS_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | views/touchui/gesture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698