Move DOMSelection.[cpp/h] from core/page to core/editing

Since this file is associated with the Editing module, this should
be kept in core/editing instead of core/page.

BUG=402417

Review URL: https://codereview.chromium.org/467503002

git-svn-id: svn://svn.chromium.org/blink/trunk@180055 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 04728001
......@@ -93,6 +93,7 @@
'dom/URL.idl',
'dom/XMLDocument.idl',
'dom/shadow/ShadowRoot.idl',
'editing/Selection.idl',
'events/AnimationPlayerEvent.idl',
'events/ApplicationCacheErrorEvent.idl',
'events/AutocompleteErrorEvent.idl',
......@@ -285,7 +286,6 @@
'loader/appcache/ApplicationCache.idl',
'page/EventSource.idl',
'page/PagePopupController.idl',
'page/Selection.idl',
'plugins/MimeType.idl',
'plugins/MimeTypeArray.idl',
'plugins/Plugin.idl',
......@@ -996,6 +996,8 @@
'editing/DeleteFromTextNodeCommand.cpp',
'editing/DeleteFromTextNodeCommand.h',
'editing/DeleteSelectionCommand.cpp',
'editing/DOMSelection.cpp',
'editing/DOMSelection.h',
'editing/EditCommand.cpp',
'editing/EditingBehavior.cpp',
'editing/EditingBehavior.h',
......@@ -1425,8 +1427,6 @@
'page/ContextMenuProvider.h',
'page/CreateWindow.cpp',
'page/CreateWindow.h',
'page/DOMSelection.cpp',
'page/DOMSelection.h',
'page/DOMWindowPagePopup.cpp',
'page/DOMWindowPagePopup.h',
'page/DragController.cpp',
......
......@@ -38,6 +38,7 @@
#include "core/dom/TreeScopeAdopter.h"
#include "core/dom/shadow/ElementShadow.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/DOMSelection.h"
#include "core/events/EventPath.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
......@@ -45,7 +46,6 @@
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLLabelElement.h"
#include "core/html/HTMLMapElement.h"
#include "core/page/DOMSelection.h"
#include "core/page/FocusController.h"
#include "core/page/Page.h"
#include "core/rendering/HitTestResult.h"
......
......@@ -29,7 +29,7 @@
#include "config.h"
#include "core/page/DOMSelection.h"
#include "core/editing/DOMSelection.h"
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
......
......@@ -57,12 +57,11 @@ public:
void clearTreeScope();
// FIXME: Reorder API functions according to Selection.idl.
// Safari Selection Object API
// These methods return the valid equivalents of internal editing positions.
Node* baseNode() const;
Node* extentNode() const;
int baseOffset() const;
Node* extentNode() const;
int extentOffset() const;
String type() const;
void setBaseAndExtent(Node* baseNode, int baseOffset, Node* extentNode, int extentOffset, ExceptionState&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment