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

Unified Diff: views/ime/character_composer.h

Issue 7264015: CL for readability review (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fixes Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/ime/character_composer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | views/ime/character_composer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698