OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 * Copyright (C) 2009 Igalia S.L. | 4 * Copyright (C) 2009 Igalia S.L. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 413 } |
414 | 414 |
415 static bool executeDeleteWordForward(LocalFrame& frame, Event*, EditorCommandSou
rce, const String&) | 415 static bool executeDeleteWordForward(LocalFrame& frame, Event*, EditorCommandSou
rce, const String&) |
416 { | 416 { |
417 frame.editor().deleteWithDirection(DirectionForward, WordGranularity, true,
false); | 417 frame.editor().deleteWithDirection(DirectionForward, WordGranularity, true,
false); |
418 return true; | 418 return true; |
419 } | 419 } |
420 | 420 |
421 static bool executeFindString(LocalFrame& frame, Event*, EditorCommandSource, co
nst String& value) | 421 static bool executeFindString(LocalFrame& frame, Event*, EditorCommandSource, co
nst String& value) |
422 { | 422 { |
423 return frame.editor().findString(value, true, false, true, false); | 423 return frame.editor().findString(value, CaseInsensitive | WrapAround); |
424 } | 424 } |
425 | 425 |
426 static bool executeFontName(LocalFrame& frame, Event*, EditorCommandSource sourc
e, const String& value) | 426 static bool executeFontName(LocalFrame& frame, Event*, EditorCommandSource sourc
e, const String& value) |
427 { | 427 { |
428 return executeApplyStyle(frame, source, EditActionSetFont, CSSPropertyFontFa
mily, value); | 428 return executeApplyStyle(frame, source, EditActionSetFont, CSSPropertyFontFa
mily, value); |
429 } | 429 } |
430 | 430 |
431 static bool executeFontSize(LocalFrame& frame, Event*, EditorCommandSource sourc
e, const String& value) | 431 static bool executeFontSize(LocalFrame& frame, Event*, EditorCommandSource sourc
e, const String& value) |
432 { | 432 { |
433 CSSValueID size; | 433 CSSValueID size; |
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 { | 1787 { |
1788 return m_command && m_command->isTextInsertion; | 1788 return m_command && m_command->isTextInsertion; |
1789 } | 1789 } |
1790 | 1790 |
1791 int Editor::Command::idForHistogram() const | 1791 int Editor::Command::idForHistogram() const |
1792 { | 1792 { |
1793 return isSupported() ? m_command->idForUserMetrics : 0; | 1793 return isSupported() ? m_command->idForUserMetrics : 0; |
1794 } | 1794 } |
1795 | 1795 |
1796 } // namespace blink | 1796 } // namespace blink |
OLD | NEW |