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

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

Issue 2617753002: [InputEvent] Move attributes from |EditCommand| to |CompositeEditCommand| (2/11) (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Standard Annex #29, Unicode text segmentation[1]. 51 // Standard Annex #29, Unicode text segmentation[1].
52 // [1] http://www.unicode.org/reports/tr29/ 52 // [1] http://www.unicode.org/reports/tr29/
53 GraphemeCluster, 53 GraphemeCluster,
54 }; 54 };
55 55
56 enum class DeleteDirection { 56 enum class DeleteDirection {
57 Forward, 57 Forward,
58 Backward, 58 Backward,
59 }; 59 };
60 60
61 class CompositeEditCommand;
61 class Document; 62 class Document;
62 class Element; 63 class Element;
63 class HTMLElement; 64 class HTMLElement;
64 class HTMLSpanElement; 65 class HTMLSpanElement;
65 class Node; 66 class Node;
66 class Range; 67 class Range;
67 68
68 // This file contains a set of helper functions used by the editing commands 69 // This file contains a set of helper functions used by the editing commands
69 70
70 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); 71 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&);
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 InputEvent::InputType, 427 InputEvent::InputType,
427 const RangeVector*); 428 const RangeVector*);
428 DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*, 429 DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*,
429 InputEvent::InputType, 430 InputEvent::InputType,
430 DataTransfer*, 431 DataTransfer*,
431 const RangeVector*); 432 const RangeVector*);
432 433
433 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 434 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
434 TextGranularity); 435 TextGranularity);
435 436
437 // TODO(chongz): Move |isComposingFromCommand()| to 'CompositeEditCommand.cpp'
438 // after we've moved |Editor::appliedEditing()| to
439 // |CompositeEditCommand::appliedEditing()|.
440 // https://crbug.com/676001
441 InputEvent::EventIsComposing isComposingFromCommand(
442 const CompositeEditCommand*);
443
436 } // namespace blink 444 } // namespace blink
437 445
438 #endif 446 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698