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

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

Issue 2779813002: [InputEvent] Don't modify selection when transpose was canceled (Closed)
Patch Set: yosin's review: Use const& Created 3 years, 8 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
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 // ------------------------------------------------------------------------- 432 // -------------------------------------------------------------------------
433 // Events 433 // Events
434 // ------------------------------------------------------------------------- 434 // -------------------------------------------------------------------------
435 435
436 // Functions dispatch InputEvent 436 // Functions dispatch InputEvent
437 const StaticRangeVector* targetRangesForInputEvent(const Node&); 437 const StaticRangeVector* targetRangesForInputEvent(const Node&);
438 DispatchEventResult dispatchBeforeInputInsertText( 438 DispatchEventResult dispatchBeforeInputInsertText(
439 Node*, 439 Node*,
440 const String& data, 440 const String& data,
441 InputEvent::InputType = InputEvent::InputType::InsertText); 441 InputEvent::InputType = InputEvent::InputType::InsertText,
442 const StaticRangeVector* = nullptr);
442 DispatchEventResult dispatchBeforeInputEditorCommand(Node*, 443 DispatchEventResult dispatchBeforeInputEditorCommand(Node*,
443 InputEvent::InputType, 444 InputEvent::InputType,
444 const StaticRangeVector*); 445 const StaticRangeVector*);
445 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, 446 DispatchEventResult dispatchBeforeInputDataTransfer(Node*,
446 InputEvent::InputType, 447 InputEvent::InputType,
447 DataTransfer*); 448 DataTransfer*);
448 449
449 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 450 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
450 TextGranularity); 451 TextGranularity);
451 452
452 } // namespace blink 453 } // namespace blink
453 454
454 #endif 455 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698