| 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" |
| 11 #include "gfx/point.h" | 11 #include "gfx/point.h" |
| 12 | 12 |
| 13 #if defined(OS_LINUX) | 13 #if defined(OS_LINUX) |
| 14 typedef struct _GdkEventKey GdkEventKey; | 14 typedef struct _GdkEventKey GdkEventKey; |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #if defined(TOUCH_UI) | 17 #if defined(TOUCH_UI) |
| 18 typedef union _XEvent XEvent; | 18 typedef union _XEvent XEvent; |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace ui { |
| 21 class OSExchangeData; | 22 class OSExchangeData; |
| 23 } |
| 24 using ui::OSExchangeData; |
| 22 | 25 |
| 23 namespace views { | 26 namespace views { |
| 24 | 27 |
| 25 class View; | 28 class View; |
| 26 | 29 |
| 27 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
| 28 // | 31 // |
| 29 // Event class | 32 // Event class |
| 30 // | 33 // |
| 31 // An event encapsulates an input event that can be propagated into view | 34 // An event encapsulates an input event that can be propagated into view |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 private: | 448 private: |
| 446 const OSExchangeData& data_; | 449 const OSExchangeData& data_; |
| 447 int source_operations_; | 450 int source_operations_; |
| 448 | 451 |
| 449 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 452 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
| 450 }; | 453 }; |
| 451 | 454 |
| 452 } // namespace views | 455 } // namespace views |
| 453 | 456 |
| 454 #endif // VIEWS_EVENT_H_ | 457 #endif // VIEWS_EVENT_H_ |
| OLD | NEW |