| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return new InputMethodController(frame); | 62 return new InputMethodController(frame); |
| 63 } | 63 } |
| 64 | 64 |
| 65 InputMethodController::InputMethodController(LocalFrame& frame) | 65 InputMethodController::InputMethodController(LocalFrame& frame) |
| 66 : m_frame(&frame) | 66 : m_frame(&frame) |
| 67 , m_isDirty(false) | 67 , m_isDirty(false) |
| 68 , m_hasComposition(false) | 68 , m_hasComposition(false) |
| 69 { | 69 { |
| 70 } | 70 } |
| 71 | 71 |
| 72 InputMethodController::~InputMethodController() | |
| 73 { | |
| 74 } | |
| 75 | |
| 76 bool InputMethodController::hasComposition() const | 72 bool InputMethodController::hasComposition() const |
| 77 { | 73 { |
| 78 return m_hasComposition; | 74 return m_hasComposition; |
| 79 } | 75 } |
| 80 | 76 |
| 81 inline Editor& InputMethodController::editor() const | 77 inline Editor& InputMethodController::editor() const |
| 82 { | 78 { |
| 83 return frame().editor(); | 79 return frame().editor(); |
| 84 } | 80 } |
| 85 | 81 |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 TypingCommand::deleteSelection(*frame().document()); | 468 TypingCommand::deleteSelection(*frame().document()); |
| 473 } | 469 } |
| 474 | 470 |
| 475 DEFINE_TRACE(InputMethodController) | 471 DEFINE_TRACE(InputMethodController) |
| 476 { | 472 { |
| 477 visitor->trace(m_frame); | 473 visitor->trace(m_frame); |
| 478 visitor->trace(m_compositionRange); | 474 visitor->trace(m_compositionRange); |
| 479 } | 475 } |
| 480 | 476 |
| 481 } // namespace blink | 477 } // namespace blink |
| OLD | NEW |