mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
b1bf7e0db4
For preparing to remove `nsIPlaintextEditor` interface, this patch moves all of them to `nsIEditor`, but for avoiding bustage in comm-central, makes `nsIPlaintextEditor` inherit `nsIEditor` for now (i.e., even with this patch, script can access old `nsIPlaintextEditor` members with the interface. In C++ code, this patch moves `SetWrapColumn()`, `InsertTextAsAction()`, `InsertTextAsSubAction()` and `InsertLineBreakAsSubAction()` because they do common things between `TextEditor` and `HTMLEditor`. On the other hand, this does not move `TextEditor::GetTextLength()` because it's designed only for `TextEditor`. Differential Revision: https://phabricator.services.mozilla.com/D60820 --HG-- rename : editor/libeditor/tests/test_nsIPlaintextEditor_insertLineBreak.html => editor/libeditor/tests/test_nsIEditor_insertLineBreak.html extra : moz-landing-system : lando
12 lines
429 B
Plaintext
12 lines
429 B
Plaintext
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsIEditor.idl"
|
|
|
|
[scriptable, builtinclass, uuid(b74fb158-1265-4102-91eb-edd0136b49f8)]
|
|
interface nsIPlaintextEditor : nsIEditor
|
|
{
|
|
};
|