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

Side by Side Diff: views/event.h

Issue 159046: Implementing accelerators for Linux toolkit_views (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | views/event_gtk.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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | views/event_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698