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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: yosin's review, fix nits Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 return character == '\'' || character == rightSingleQuotationMarkCharacter || 404 return character == '\'' || character == rightSingleQuotationMarkCharacter ||
405 character == hebrewPunctuationGershayimCharacter; 405 character == hebrewPunctuationGershayimCharacter;
406 } 406 }
407 407
408 String stringWithRebalancedWhitespace(const String&, 408 String stringWithRebalancedWhitespace(const String&,
409 bool startIsStartOfParagraph, 409 bool startIsStartOfParagraph,
410 bool shouldEmitNBSPbeforeEnd); 410 bool shouldEmitNBSPbeforeEnd);
411 const String& nonBreakingSpaceString(); 411 const String& nonBreakingSpaceString();
412 412
413 // ------------------------------------------------------------------------- 413 // -------------------------------------------------------------------------
414 // Events 414 // InputEvent
415 // ------------------------------------------------------------------------- 415 // -------------------------------------------------------------------------
416 416
417 // Functions dispatch InputEvent
418 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*,
419 const String& data);
420 DispatchEventResult dispatchBeforeInputFromComposition(
421 EventTarget*,
422 InputEvent::InputType,
423 const String& data,
424 InputEvent::EventCancelable);
425 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*,
426 InputEvent::InputType,
427 const RangeVector*);
428 DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*,
429 InputEvent::InputType,
430 DataTransfer*,
431 const RangeVector*);
432
433 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 417 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
434 TextGranularity); 418 TextGranularity);
435 419
436 } // namespace blink 420 } // namespace blink
437 421
438 #endif 422 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698