Bug 902111 - Forward-declare nsIFrame in nsISelectionPrivate.h; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2013-08-06 16:19:11 -04:00
parent daa7175de3
commit b9560fc7d9
6 changed files with 27 additions and 6 deletions

View File

@ -14,11 +14,13 @@ interface nsIContent;
interface nsINode;
%{C++
class nsIFrame;
struct nsTextRangeStyle;
struct nsPoint;
struct ScrollAxis;
#include "nsDirection.h"
#include "nsTArray.h"
#include "nsIFrame.h"
#include "nsIPresShell.h" // TODO: Remove this include
%}
[ptr] native nsIFrame(nsIFrame);

View File

@ -12,6 +12,7 @@
#include "nsGUIEvent.h" // for nsTextRangeStyle
#include "nsIDOMCharacterData.h" // for nsIDOMCharacterData
#include "nsIDOMRange.h" // for nsRange::SetEnd, etc
#include "nsIContent.h" // for nsIContent
#include "nsIEditor.h" // for nsIEditor
#include "nsIPresShell.h" // for SelectionType
#include "nsIPrivateTextRange.h" // for nsIPrivateTextRange, etc

View File

@ -13,11 +13,13 @@
#include "nsISelectionController.h"
#include "nsISelectionPrivate.h"
#include "nsRange.h"
#include "nsThreadUtils.h"
struct CachedOffsetForFrame;
class nsAutoScrollTimer;
class nsIContentIterator;
class nsIFrame;
class nsFrameSelection;
struct SelectionDetails;
struct RangeData

View File

@ -12,6 +12,7 @@ EXPORTS += [
'ScrollbarActivity.h',
'Selection.h',
'nsCanvasFrame.h',
'nsDirection.h',
'nsFrameIdList.h',
'nsFrameList.h',
'nsFrameSelection.h',

View File

@ -0,0 +1,19 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 sw=2 et tw=78: */
/* 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/. */
#ifndef nsDirection_h___
#define nsDirection_h___
// This file makes the nsDirection enum present both in nsIFrame.h and
// nsISelectionPrivate.h.
enum nsDirection {
eDirNext = 0,
eDirPrevious= 1
};
#endif

View File

@ -33,6 +33,7 @@
#include "mozilla/css/ImageLoader.h"
#include "FramePropertyTable.h"
#include "mozilla/TypedEnum.h"
#include "nsDirection.h"
#include <algorithm>
#ifdef ACCESSIBILITY
@ -355,11 +356,6 @@ enum nsSelectionAmount {
// behavior is
};
enum nsDirection {
eDirNext = 0,
eDirPrevious= 1
};
enum nsSpread {
eSpreadNone = 0,
eSpreadAcross = 1,