Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 | 65 |
| 66 // This file contains a set of helper functions used by the editing commands | 66 // This file contains a set of helper functions used by the editing commands |
| 67 | 67 |
| 68 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); | 68 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); |
| 69 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); | 69 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); |
| 70 | 70 |
| 71 // ------------------------------------------------------------------------- | 71 // ------------------------------------------------------------------------- |
| 72 // Node | 72 // Node |
| 73 // ------------------------------------------------------------------------- | 73 // ------------------------------------------------------------------------- |
| 74 | 74 |
| 75 // Style-independent editability. These functions are useless in Blink editing | |
| 76 // code. | |
| 77 | |
| 78 // https://w3c.github.io/editing/execCommand.html#editing-host | |
| 79 bool isEditingHost(const Node&); | |
|
yosin_UTC9
2016/07/27 01:34:36
Could you rename |isEditingHost()| or |isEditable(
| |
| 80 // https://w3c.github.io/editing/execCommand.html#editable | |
| 81 bool isEditable(const Node&); | |
| 82 | |
| 83 // Style-dependent editability | |
| 84 | |
| 75 CORE_EXPORT bool isContentEditable(const Node&); | 85 CORE_EXPORT bool isContentEditable(const Node&); |
| 76 CORE_EXPORT bool isContentRichlyEditable(const Node&); | 86 CORE_EXPORT bool isContentRichlyEditable(const Node&); |
| 77 CORE_EXPORT bool hasEditableStyle(const Node&, EditableType = ContentIsEditable) ; | 87 CORE_EXPORT bool hasEditableStyle(const Node&, EditableType = ContentIsEditable) ; |
| 78 CORE_EXPORT bool layoutObjectIsRichlyEditable(const Node&, EditableType = Conten tIsEditable); | 88 CORE_EXPORT bool layoutObjectIsRichlyEditable(const Node&, EditableType = Conten tIsEditable); |
| 79 CORE_EXPORT bool isRootEditableElement(const Node&); | 89 CORE_EXPORT bool isRootEditableElement(const Node&); |
| 80 CORE_EXPORT Element* rootEditableElement(const Node&); | 90 CORE_EXPORT Element* rootEditableElement(const Node&); |
| 81 CORE_EXPORT Element* rootEditableElement(const Node&, EditableType); | 91 CORE_EXPORT Element* rootEditableElement(const Node&, EditableType); |
| 82 // highestEditableRoot returns the highest editable node. If the | 92 // highestEditableRoot returns the highest editable node. If the |
| 83 // rootEditableElement of the speicified Position is <body>, this returns the | 93 // rootEditableElement of the speicified Position is <body>, this returns the |
| 84 // <body>. Otherwise, this searches ancestors for the highest editable node in | 94 // <body>. Otherwise, this searches ancestors for the highest editable node in |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 // ------------------------------------------------------------------------- | 370 // ------------------------------------------------------------------------- |
| 361 | 371 |
| 362 // Functions dispatch InputEvent | 372 // Functions dispatch InputEvent |
| 363 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); | 373 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); |
| 364 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable); | 374 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable); |
| 365 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*); | 375 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*); |
| 366 | 376 |
| 367 } // namespace blink | 377 } // namespace blink |
| 368 | 378 |
| 369 #endif | 379 #endif |
| OLD | NEW |