161 | 161 |
return true;
|
162 | 162 |
}
|
163 | 163 |
|
164 | |
for (vector<UIMessage>::const_iterator it = messages.begin();
|
|
164 |
for (std::vector<UIMessage>::const_iterator it = messages.begin();
|
165 | 165 |
it != messages.end(); ++it) {
|
166 | 166 |
if (UIVisibilityTracker::IsVisibilityTestMessageForComposiwionWindow(
|
167 | 167 |
it->message(), it->wparam(), it->lparam())) {
|
|
482 | 482 |
|
483 | 483 |
// Notify IMN_CLOSECANDIDATE.
|
484 | 484 |
std::vector<UIMessage> other_candidate_messages;
|
485 | |
for (vector<UIMessage>::const_iterator it = candidate_messages.begin();
|
|
485 |
for (std::vector<UIMessage>::const_iterator it = candidate_messages.begin();
|
486 | 486 |
it != candidate_messages.end(); ++it) {
|
487 | 487 |
const bool is_close_candidate = ((it->message() == WM_IME_NOTIFY) &&
|
488 | 488 |
(it->wparam() == IMN_CLOSECANDIDATE));
|
|
496 | 496 |
// Notify all composition UI messages except for WM_IME_ENDCOMPOSITION.
|
497 | 497 |
// Typically WM_IME_STARTCOMPOSITION / WM_IME_COMPOSITION will be handled.
|
498 | 498 |
std::vector<UIMessage> end_composition_messages;
|
499 | |
for (vector<UIMessage>::const_iterator it = composition_messages.begin();
|
|
499 |
for (std::vector<UIMessage>::const_iterator it = composition_messages.begin();
|
500 | 500 |
it != composition_messages.end(); ++it) {
|
501 | 501 |
if (it->message() == WM_IME_ENDCOMPOSITION) {
|
502 | 502 |
end_composition_messages.push_back(*it);
|
|
507 | 507 |
|
508 | 508 |
// Notify all other candidate UI messages.
|
509 | 509 |
// Typically IMN_OPENCANDIDATE and IMN_CHANGECANDIDATE will be handled.
|
510 | |
for (vector<UIMessage>::const_iterator it = other_candidate_messages.begin();
|
|
510 |
for (std::vector<UIMessage>::const_iterator it =
|
|
511 |
other_candidate_messages.begin();
|
511 | 512 |
it != other_candidate_messages.end(); ++it) {
|
512 | 513 |
DCHECK(!((it->message() == WM_IME_NOTIFY) &&
|
513 | 514 |
(it->wparam() == IMN_CLOSECANDIDATE)));
|
|
515 | 516 |
}
|
516 | 517 |
|
517 | 518 |
// Notify WM_IME_ENDCOMPOSITION
|
518 | |
for (vector<UIMessage>::const_iterator it = end_composition_messages.begin();
|
|
519 |
for (std::vector<UIMessage>::const_iterator it =
|
|
520 |
end_composition_messages.begin();
|
519 | 521 |
it != end_composition_messages.end(); ++it) {
|
520 | 522 |
DCHECK_EQ(WM_IME_ENDCOMPOSITION, it->message());
|
521 | 523 |
sorted_messages->push_back(*it);
|
|
656 | 658 |
// Allow visibility trackers to track if each UI message will be
|
657 | 659 |
UIVisibilityTracker *ui_visibility_tracker =
|
658 | 660 |
private_context->ui_visibility_tracker;
|
659 | |
for (vector<UIMessage>::const_iterator it = sorted_messages.begin();
|
|
661 |
for (std::vector<UIMessage>::const_iterator it = sorted_messages.begin();
|
660 | 662 |
it != sorted_messages.end(); ++it) {
|
661 | 663 |
if (UIVisibilityTracker::IsVisibilityTestMessageForCandidateWindow(
|
662 | 664 |
it->message(), it->wparam(), it->lparam())) {
|