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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Node | 74 // Node |
75 // ------------------------------------------------------------------------- | 75 // ------------------------------------------------------------------------- |
76 | 76 |
77 // Returns true if |node| has "user-select:contain". | 77 // Returns true if |node| has "user-select:contain". |
78 bool isUserSelectContain(const Node& /* node */); | 78 bool isUserSelectContain(const Node& /* node */); |
79 | 79 |
80 CORE_EXPORT bool hasEditableStyle(const Node&); | 80 CORE_EXPORT bool hasEditableStyle(const Node&); |
81 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); | 81 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); |
82 CORE_EXPORT bool isRootEditableElement(const Node&); | 82 CORE_EXPORT bool isRootEditableElement(const Node&); |
83 CORE_EXPORT Element* rootEditableElement(const Node&); | 83 CORE_EXPORT Element* rootEditableElement(const Node&); |
84 bool selectionHasFocus(const SelectionInFlatTree&); | |
85 Element* rootEditableElementOf(const Position&); | 84 Element* rootEditableElementOf(const Position&); |
86 Element* rootEditableElementOf(const PositionInFlatTree&); | 85 Element* rootEditableElementOf(const PositionInFlatTree&); |
87 Element* rootEditableElementOf(const VisiblePosition&); | 86 Element* rootEditableElementOf(const VisiblePosition&); |
88 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf(const Position&); | 87 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf(const Position&); |
89 // highestEditableRoot returns the highest editable node. If the | 88 // highestEditableRoot returns the highest editable node. If the |
90 // rootEditableElement of the speicified Position is <body>, this returns the | 89 // rootEditableElement of the speicified Position is <body>, this returns the |
91 // <body>. Otherwise, this searches ancestors for the highest editable node in | 90 // <body>. Otherwise, this searches ancestors for the highest editable node in |
92 // defiance of editing boundaries. This returns a Document if designMode="on" | 91 // defiance of editing boundaries. This returns a Document if designMode="on" |
93 // and the specified Position is not in the <body>. | 92 // and the specified Position is not in the <body>. |
94 CORE_EXPORT ContainerNode* highestEditableRoot( | 93 CORE_EXPORT ContainerNode* highestEditableRoot( |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, | 433 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, |
435 InputEvent::InputType, | 434 InputEvent::InputType, |
436 DataTransfer*); | 435 DataTransfer*); |
437 | 436 |
438 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 437 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
439 TextGranularity); | 438 TextGranularity); |
440 | 439 |
441 } // namespace blink | 440 } // namespace blink |
442 | 441 |
443 #endif | 442 #endif |
OLD | NEW |