Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: Source/core/editing/EditorCommand.cpp

Issue 868463002: Support WholeWord in window.find() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix nit Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/FindOptions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/FindOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698