Bug 1546578 - part 1: Get rid of HTMLEditorCommands.h r=m_kato

When declaring a common base class of all editor command classes in
EditorCommands.h, we need to declare some useful macro to declare its
subclasses.  However, such macro should be `#undef`ed in the header file.

Therefore, this patch moves all contents in HTMLEditorCommands.h to
EditorCommands.h and removes it from the tree.

Differential Revision: https://phabricator.services.mozilla.com/D28682
This commit is contained in:
Masayuki Nakano
2019-04-26 02:20:22 +00:00
parent e4f04f5bd0
commit 5390fafa56
6 changed files with 389 additions and 427 deletions

View File

@@ -3,13 +3,12 @@
* 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 <stdio.h> // for printf
#include "mozilla/EditorCommands.h"
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/EditorBase.h" // for EditorBase
#include "mozilla/ErrorResult.h"
#include "mozilla/HTMLEditor.h" // for HTMLEditor
#include "mozilla/HTMLEditorCommands.h"
#include "mozilla/dom/Element.h"
#include "nsAString.h"
#include "nsCommandParams.h" // for nsCommandParams, etc
@@ -602,13 +601,8 @@ MultiStateCommandBase::IsCommandEnabled(const char* aCommandName,
NS_IMETHODIMP
MultiStateCommandBase::DoCommand(const char* aCommandName,
nsISupports* refCon) {
#ifdef DEBUG
printf(
"who is calling MultiStateCommandBase::DoCommand \
(no implementation)? %s\n",
aCommandName);
#endif
NS_WARNING(
"who is calling MultiStateCommandBase::DoCommand (no implementation)?");
return NS_OK;
}