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

Side by Side Diff: ui/aura/event.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git mv desktop_host_unittest.cc desktop_host_ime_unittest.cc Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_AURA_EVENT_H_ 5 #ifndef UI_AURA_EVENT_H_
6 #define UI_AURA_EVENT_H_ 6 #define UI_AURA_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const float rotation_angle_; 137 const float rotation_angle_;
138 138
139 // Force (pressure) of the touch. Normalized to be [0, 1]. Default to be 0.0. 139 // Force (pressure) of the touch. Normalized to be [0, 1]. Default to be 0.0.
140 const float force_; 140 const float force_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(TouchEvent); 142 DISALLOW_COPY_AND_ASSIGN(TouchEvent);
143 }; 143 };
144 144
145 class AURA_EXPORT KeyEvent : public Event { 145 class AURA_EXPORT KeyEvent : public Event {
146 public: 146 public:
147 // TODO(yusukes): Remove |is_char| when IME support for Aura is submitted.
147 KeyEvent(const base::NativeEvent& native_event, bool is_char); 148 KeyEvent(const base::NativeEvent& native_event, bool is_char);
148 149
149 // Used for synthetic events in testing. 150 // Used for synthetic events in testing.
150 KeyEvent(ui::EventType type, 151 KeyEvent(ui::EventType type,
151 ui::KeyboardCode key_code, 152 ui::KeyboardCode key_code,
152 int flags); 153 int flags);
153 154
154 // These setters allow an I18N virtual keyboard to fabricate a keyboard event 155 // These setters allow an I18N virtual keyboard to fabricate a keyboard event
155 // which does not have a corresponding ui::KeyboardCode (example: U+00E1 Latin 156 // which does not have a corresponding ui::KeyboardCode (example: U+00E1 Latin
156 // small letter A with acute, U+0410 Cyrillic capital letter A.) 157 // small letter A with acute, U+0410 Cyrillic capital letter A.)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 202 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
202 int source_operations_; 203 int source_operations_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 205 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
205 }; 206 };
206 207
207 } // namespace aura 208 } // namespace aura
208 209
209 #endif // UI_AURA_EVENT_H_ 210 #endif // UI_AURA_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698