OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |