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 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2350 checkingTypes |= TextCheckingTypeGrammar; | 2350 checkingTypes |= TextCheckingTypeGrammar; |
2351 | 2351 |
2352 return checkingTypes; | 2352 return checkingTypes; |
2353 } | 2353 } |
2354 | 2354 |
2355 bool Editor::unifiedTextCheckerEnabled() const | 2355 bool Editor::unifiedTextCheckerEnabled() const |
2356 { | 2356 { |
2357 return WebCore::unifiedTextCheckerEnabled(m_frame); | 2357 return WebCore::unifiedTextCheckerEnabled(m_frame); |
2358 } | 2358 } |
2359 | 2359 |
| 2360 void Editor::toggleOverwriteModeEnabled() |
| 2361 { |
| 2362 m_overwriteModeEnabled = !m_overwriteModeEnabled; |
| 2363 frame()->selection()->setShouldShowBlockCursor(m_overwriteModeEnabled); |
| 2364 }; |
| 2365 |
2360 } // namespace WebCore | 2366 } // namespace WebCore |
OLD | NEW |