Index: views/ime/character_composer.h |
diff --git a/views/ime/character_composer.h b/views/ime/character_composer.h |
index d0dcc5c2943d4b37c41f56b00603208a48ffbbd2..291e80a1d40a09283659d3aa8684a6a358a9e30c 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); |