| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "core/editing/InputMethodController.h" | 5 #include "core/editing/InputMethodController.h" |
| 6 | 6 |
| 7 #include "core/dom/Element.h" | 7 #include "core/dom/Element.h" |
| 8 #include "core/dom/Range.h" | 8 #include "core/dom/Range.h" |
| 9 #include "core/editing/FrameSelection.h" | 9 #include "core/editing/FrameSelection.h" |
| 10 #include "core/events/MouseEvent.h" | 10 #include "core/events/MouseEvent.h" |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 Vector<CompositionUnderline> underlines; | 365 Vector<CompositionUnderline> underlines; |
| 366 underlines.append(CompositionUnderline(0, 5, Color(255, 0, 0), false, 0)); | 366 underlines.append(CompositionUnderline(0, 5, Color(255, 0, 0), false, 0)); |
| 367 editable->focus(); | 367 editable->focus(); |
| 368 | 368 |
| 369 document().setTitle(emptyString()); | 369 document().setTitle(emptyString()); |
| 370 controller().setComposition("foo", underlines, 0, 3); | 370 controller().setComposition("foo", underlines, 0, 3); |
| 371 EXPECT_STREQ("beforeinput.isComposing:true", document().title().utf8().data(
)); | 371 EXPECT_STREQ("beforeinput.isComposing:true", document().title().utf8().data(
)); |
| 372 | 372 |
| 373 document().setTitle(emptyString()); | 373 document().setTitle(emptyString()); |
| 374 controller().confirmComposition(); | 374 controller().confirmComposition(); |
| 375 EXPECT_STREQ("beforeinput.isComposing:false", document().title().utf8().data
()); | 375 // Last 'beforeinput' should also be inside composition scope. |
| 376 EXPECT_STREQ("beforeinput.isComposing:true", document().title().utf8().data(
)); |
| 376 } | 377 } |
| 377 | 378 |
| 378 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |