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