summaryrefslogtreecommitdiffstats
path: root/views/ime/character_composer.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/ime/character_composer.h')
-rw-r--r--views/ime/character_composer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/views/ime/character_composer.h b/views/ime/character_composer.h
index d0dcc5c..291e80a 100644
--- a/views/ime/character_composer.h
+++ b/views/ime/character_composer.h
@@ -7,6 +7,7 @@
#pragma once
#include <vector>
+
#include "base/basictypes.h"
#include "base/string_util.h"
@@ -24,17 +25,22 @@ class CharacterComposer {
void Reset();
- // Filters keypress. Returns true if the keypress is handled.
+ // Filters keypress.
+ // Returns true if the keypress is recognized as a part of composition
+ // sequence.
bool FilterKeyPress(unsigned int keycode);
// Returns a string consisting of composed character.
- // Empty is returned when there is no composition result.
- const string16& GetComposedCharacter() const {
+ // Empty string is returned when there is no composition result.
+ const string16& composed_character() const {
return composed_character_;
}
private:
+ // Remembers keypresses previously filtered.
std::vector<unsigned int> compose_buffer_;
+
+ // A string representing the composed character.
string16 composed_character_;
DISALLOW_COPY_AND_ASSIGN(CharacterComposer);