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

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: moved IME code to aura_shell, not ready for review though 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // BMP characters. 164 // BMP characters.
165 uint16 GetCharacter() const; 165 uint16 GetCharacter() const;
166 166
167 // Gets the character generated by this key event ignoring concurrently-held 167 // Gets the character generated by this key event ignoring concurrently-held
168 // modifiers (except shift). 168 // modifiers (except shift).
169 uint16 GetUnmodifiedCharacter() const; 169 uint16 GetUnmodifiedCharacter() const;
170 170
171 ui::KeyboardCode key_code() const { return key_code_; } 171 ui::KeyboardCode key_code() const { return key_code_; }
172 bool is_char() const { return is_char_; } 172 bool is_char() const { return is_char_; }
173 173
174 void set_skip_ime(bool skip_ime) { skip_ime_ = skip_ime; }
175 bool skip_ime() const { return skip_ime_; }
176
174 private: 177 private:
175 ui::KeyboardCode key_code_; 178 ui::KeyboardCode key_code_;
176 // True if this is a translated character event (vs. a raw key down). Both 179 // True if this is a translated character event (vs. a raw key down). Both
177 // share the same type: ui::ET_KEY_PRESSED. 180 // share the same type: ui::ET_KEY_PRESSED.
178 bool is_char_; 181 bool is_char_;
182 // True if the event is generated by IME.
183 bool skip_ime_;
Yusuke Sato 2011/12/12 07:51:53 This flag is for resoving the sync/async issue.
Ben Goodger (Google) 2011/12/12 16:51:03 It'd be good to come up with a neater way to expre
Yusuke Sato 2011/12/14 13:42:04 Thanks for the suggestion. I've added a new event
179 184
180 uint16 character_; 185 uint16 character_;
181 uint16 unmodified_character_; 186 uint16 unmodified_character_;
182 }; 187 };
183 188
184 class AURA_EXPORT DropTargetEvent : public LocatedEvent { 189 class AURA_EXPORT DropTargetEvent : public LocatedEvent {
185 public: 190 public:
186 DropTargetEvent(const ui::OSExchangeData& data, 191 DropTargetEvent(const ui::OSExchangeData& data,
187 const gfx::Point& location, 192 const gfx::Point& location,
188 int source_operations) 193 int source_operations)
(...skipping 11 matching lines...) Expand all
200 205
201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 206 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
202 int source_operations_; 207 int source_operations_;
203 208
204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 209 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
205 }; 210 };
206 211
207 } // namespace aura 212 } // namespace aura
208 213
209 #endif // UI_AURA_EVENT_H_ 214 #endif // UI_AURA_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698