From a648e111121ad22c6dcb52a2244f4b879baa3ac7 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Thu, 3 Apr 2014 13:18:37 +0900 Subject: [PATCH] Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug --- dom/events/IMEContentObserver.cpp | 2 +- dom/events/IMEStateManager.cpp | 2 +- dom/events/TextComposition.cpp | 2 +- dom/events/moz.build | 1 + editor/libeditor/base/nsEditor.cpp | 2 +- editor/libeditor/text/nsPlaintextEditor.cpp | 2 +- editor/libeditor/text/nsTextEditRules.cpp | 2 +- widget/xpwidgets/PuppetWidget.cpp | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dom/events/IMEContentObserver.cpp b/dom/events/IMEContentObserver.cpp index 003d44a1c166..949a4cd47c58 100644 --- a/dom/events/IMEContentObserver.cpp +++ b/dom/events/IMEContentObserver.cpp @@ -8,6 +8,7 @@ #include "IMEContentObserver.h" #include "mozilla/AsyncEventDispatcher.h" #include "mozilla/IMEStateManager.h" +#include "mozilla/TextComposition.h" #include "mozilla/dom/Element.h" #include "nsAutoPtr.h" #include "nsContentUtils.h" @@ -27,7 +28,6 @@ #include "nsPresContext.h" #include "nsThreadUtils.h" #include "nsWeakReference.h" -#include "TextComposition.h" namespace mozilla { diff --git a/dom/events/IMEStateManager.cpp b/dom/events/IMEStateManager.cpp index 5aa6b2c15667..fc374e139b06 100644 --- a/dom/events/IMEStateManager.cpp +++ b/dom/events/IMEStateManager.cpp @@ -10,12 +10,12 @@ #include "mozilla/EventStates.h" #include "mozilla/Preferences.h" #include "mozilla/Services.h" +#include "mozilla/TextComposition.h" #include "mozilla/TextEvents.h" #include "mozilla/dom/HTMLFormElement.h" #include "HTMLInputElement.h" #include "IMEContentObserver.h" -#include "TextComposition.h" #include "nsCOMPtr.h" #include "nsContentUtils.h" diff --git a/dom/events/TextComposition.cpp b/dom/events/TextComposition.cpp index 4090a1878137..a78be0585d53 100644 --- a/dom/events/TextComposition.cpp +++ b/dom/events/TextComposition.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "ContentEventHandler.h" -#include "TextComposition.h" #include "nsContentUtils.h" #include "nsIContent.h" #include "nsIEditor.h" @@ -14,6 +13,7 @@ #include "mozilla/EventDispatcher.h" #include "mozilla/IMEStateManager.h" #include "mozilla/MiscEvents.h" +#include "mozilla/TextComposition.h" #include "mozilla/TextEvents.h" using namespace mozilla::widget; diff --git a/dom/events/moz.build b/dom/events/moz.build index 3ff0267a9dec..aff8bc80f331 100644 --- a/dom/events/moz.build +++ b/dom/events/moz.build @@ -25,6 +25,7 @@ EXPORTS.mozilla += [ 'InternalMutationEvent.h', 'JSEventHandler.h', 'KeyNameList.h', + 'TextComposition.h', 'VirtualKeyCodeList.h', ] diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 1b6a0f6d00b5..6e8e87de2eeb 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -21,7 +21,6 @@ #include "JoinElementTxn.h" // for JoinElementTxn #include "PlaceholderTxn.h" // for PlaceholderTxn #include "SplitElementTxn.h" // for SplitElementTxn -#include "TextComposition.h" // for TextComposition #include "mozFlushType.h" // for mozFlushType::Flush_Frames #include "mozISpellCheckingEngine.h" #include "mozInlineSpellChecker.h" // for mozInlineSpellChecker @@ -29,6 +28,7 @@ #include "mozilla/Preferences.h" // for Preferences #include "mozilla/Selection.h" // for Selection, etc #include "mozilla/Services.h" // for GetObserverService +#include "mozilla/TextComposition.h" // for TextComposition #include "mozilla/TextEvents.h" #include "mozilla/dom/Element.h" // for Element, nsINode::AsElement #include "mozilla/mozalloc.h" // for operator new, etc diff --git a/editor/libeditor/text/nsPlaintextEditor.cpp b/editor/libeditor/text/nsPlaintextEditor.cpp index 4457faa5d00c..35614583c750 100644 --- a/editor/libeditor/text/nsPlaintextEditor.cpp +++ b/editor/libeditor/text/nsPlaintextEditor.cpp @@ -4,10 +4,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "TextComposition.h" #include "mozilla/Assertions.h" #include "mozilla/Preferences.h" #include "mozilla/Selection.h" +#include "mozilla/TextComposition.h" #include "mozilla/TextEvents.h" #include "mozilla/dom/Element.h" #include "mozilla/mozalloc.h" diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index 846088ed0f80..a1fd53e2f731 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/editor/libeditor/text/nsTextEditRules.cpp @@ -3,11 +3,11 @@ * 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 "TextComposition.h" #include "mozilla/Assertions.h" #include "mozilla/LookAndFeel.h" #include "mozilla/Preferences.h" #include "mozilla/Selection.h" +#include "mozilla/TextComposition.h" #include "mozilla/dom/Element.h" #include "nsAString.h" #include "nsAutoPtr.h" diff --git a/widget/xpwidgets/PuppetWidget.cpp b/widget/xpwidgets/PuppetWidget.cpp index b26b7200c632..853b602a89a8 100644 --- a/widget/xpwidgets/PuppetWidget.cpp +++ b/widget/xpwidgets/PuppetWidget.cpp @@ -17,10 +17,10 @@ #include "mozilla/IMEStateManager.h" #include "mozilla/layers/CompositorChild.h" #include "mozilla/layers/PLayerTransactionChild.h" +#include "mozilla/TextComposition.h" #include "mozilla/TextEvents.h" #include "PuppetWidget.h" #include "nsIWidgetListener.h" -#include "TextComposition.h" using namespace mozilla::dom; using namespace mozilla::hal;