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

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

Issue 2738953003: [InputEvent] Support 'insertFromYank' for macOS (Closed)
Patch Set: yosin's review: Only implement yank Created 3 years, 9 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 bool startIsStartOfParagraph, 413 bool startIsStartOfParagraph,
414 bool shouldEmitNBSPbeforeEnd); 414 bool shouldEmitNBSPbeforeEnd);
415 const String& nonBreakingSpaceString(); 415 const String& nonBreakingSpaceString();
416 416
417 // ------------------------------------------------------------------------- 417 // -------------------------------------------------------------------------
418 // Events 418 // Events
419 // ------------------------------------------------------------------------- 419 // -------------------------------------------------------------------------
420 420
421 // Functions dispatch InputEvent 421 // Functions dispatch InputEvent
422 const StaticRangeVector* targetRangesForInputEvent(const Node&); 422 const StaticRangeVector* targetRangesForInputEvent(const Node&);
423 DispatchEventResult dispatchBeforeInputInsertText(Node*, const String& data); 423 DispatchEventResult dispatchBeforeInputInsertText(
424 Node*,
425 const String& data,
426 InputEvent::InputType = InputEvent::InputType::InsertText);
424 DispatchEventResult dispatchBeforeInputEditorCommand(Node*, 427 DispatchEventResult dispatchBeforeInputEditorCommand(Node*,
425 InputEvent::InputType, 428 InputEvent::InputType,
426 const StaticRangeVector*); 429 const StaticRangeVector*);
427 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, 430 DispatchEventResult dispatchBeforeInputDataTransfer(Node*,
428 InputEvent::InputType, 431 InputEvent::InputType,
429 DataTransfer*); 432 DataTransfer*);
430 433
431 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 434 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
432 TextGranularity); 435 TextGranularity);
433 436
434 } // namespace blink 437 } // namespace blink
435 438
436 #endif 439 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698