| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 | 10 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // A key event is used for any input event related to the keyboard. | 227 // A key event is used for any input event related to the keyboard. |
| 228 // Note: this event is about key pressed, not typed characters. | 228 // Note: this event is about key pressed, not typed characters. |
| 229 // | 229 // |
| 230 //////////////////////////////////////////////////////////////////////////////// | 230 //////////////////////////////////////////////////////////////////////////////// |
| 231 class KeyEvent : public Event { | 231 class KeyEvent : public Event { |
| 232 public: | 232 public: |
| 233 #if defined(OS_WIN) | 233 #if defined(OS_WIN) |
| 234 // Create a new key event | 234 // Create a new key event |
| 235 KeyEvent(EventType type, int ch, int repeat_count, int message_flags); | 235 KeyEvent(EventType type, int ch, int repeat_count, int message_flags); |
| 236 #elif defined(OS_LINUX) | 236 #elif defined(OS_LINUX) |
| 237 explicit KeyEvent(GdkEventKey* event); | 237 KeyEvent(GdkEventKey* event, bool make_upper_case); |
| 238 #endif | 238 #endif |
| 239 | 239 |
| 240 int GetCharacter() const { | 240 int GetCharacter() const { |
| 241 return character_; | 241 return character_; |
| 242 } | 242 } |
| 243 | 243 |
| 244 #if defined(OS_WIN) | 244 #if defined(OS_WIN) |
| 245 bool IsExtendedKey() const; | 245 bool IsExtendedKey() const; |
| 246 #endif | 246 #endif |
| 247 | 247 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 private: | 314 private: |
| 315 const OSExchangeData& data_; | 315 const OSExchangeData& data_; |
| 316 int source_operations_; | 316 int source_operations_; |
| 317 | 317 |
| 318 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 318 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 } // namespace views | 321 } // namespace views |
| 322 | 322 |
| 323 #endif // VIEWS_EVENT_H_ | 323 #endif // VIEWS_EVENT_H_ |
| OLD | NEW |