Skip to content

Commit

Permalink
Bug 1038536 - Flatten image/src/ directory. r=seth
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed May 15, 2015
1 parent ff17854 commit 0393a38
Show file tree
Hide file tree
Showing 69 changed files with 181 additions and 189 deletions.
2 changes: 1 addition & 1 deletion dom/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ LOCAL_INCLUDES += [
'/dom/xslt/xpath',
'/dom/xul',
'/gfx/2d',
'/image/src',
'/image',
'/js/xpconnect/src',
'/js/xpconnect/wrappers',
'/layout/base',
Expand Down
2 changes: 1 addition & 1 deletion dom/canvas/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ LOCAL_INCLUDES += [
'/dom/svg',
'/dom/xul',
'/gfx/gl',
'/image/src',
'/image',
'/js/xpconnect/src',
'/layout/generic',
'/layout/style',
Expand Down
6 changes: 3 additions & 3 deletions image/src/BMPFileHeaders.h → image/BMPFileHeaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* 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 mozilla_image_src_BMPFileHeaders_h
#define mozilla_image_src_BMPFileHeaders_h
#ifndef mozilla_image_BMPFileHeaders_h
#define mozilla_image_BMPFileHeaders_h

namespace mozilla {
namespace image {
Expand Down Expand Up @@ -141,4 +141,4 @@ enum ERLEState {
///< be read as padding
};

#endif // mozilla_image_src_BMPFileHeaders_h
#endif // mozilla_image_BMPFileHeaders_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ClippedImage.h → image/ClippedImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_ClippedImage_h
#define mozilla_image_src_ClippedImage_h
#ifndef mozilla_image_ClippedImage_h
#define mozilla_image_ClippedImage_h

#include "ImageWrapper.h"
#include "mozilla/gfx/2D.h"
Expand Down Expand Up @@ -91,4 +91,4 @@ class ClippedImage : public ImageWrapper
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ClippedImage_h
#endif // mozilla_image_ClippedImage_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/DecodePool.h → image/DecodePool.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* DecodePool manages the threads used for decoding raster images.
*/

#ifndef mozilla_image_src_DecodePool_h
#define mozilla_image_src_DecodePool_h
#ifndef mozilla_image_DecodePool_h
#define mozilla_image_DecodePool_h

#include "mozilla/Mutex.h"
#include "mozilla/StaticPtr.h"
Expand Down Expand Up @@ -98,4 +98,4 @@ class DecodePool : public nsIObserver
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_DecodePool_h
#endif // mozilla_image_DecodePool_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/Decoder.h → image/Decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_Decoder_h
#define mozilla_image_src_Decoder_h
#ifndef mozilla_image_Decoder_h
#define mozilla_image_Decoder_h

#include "FrameAnimator.h"
#include "RasterImage.h"
Expand Down Expand Up @@ -502,4 +502,4 @@ class Decoder : public IResumable
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_Decoder_h
#endif // mozilla_image_Decoder_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/Downscaler.h → image/Downscaler.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* scaling implementation.
*/

#ifndef mozilla_image_src_Downscaler_h
#define mozilla_image_src_Downscaler_h
#ifndef mozilla_image_Downscaler_h
#define mozilla_image_Downscaler_h

#include "mozilla/UniquePtr.h"
#include "nsRect.h"
Expand Down Expand Up @@ -156,4 +156,4 @@ class Downscaler
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_Downscaler_h
#endif // mozilla_image_Downscaler_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/DynamicImage.h → image/DynamicImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_DynamicImage_h
#define mozilla_image_src_DynamicImage_h
#ifndef mozilla_image_DynamicImage_h
#define mozilla_image_DynamicImage_h

#include "mozilla/MemoryReporting.h"
#include "gfxDrawable.h"
Expand Down Expand Up @@ -72,4 +72,4 @@ class DynamicImage : public Image
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_DynamicImage_h
#endif // mozilla_image_DynamicImage_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/FrameAnimator.h → image/FrameAnimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* 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 mozilla_image_src_FrameAnimator_h
#define mozilla_image_src_FrameAnimator_h
#ifndef mozilla_image_FrameAnimator_h
#define mozilla_image_FrameAnimator_h

#include "mozilla/MemoryReporting.h"
#include "mozilla/TimeStamp.h"
Expand Down Expand Up @@ -287,4 +287,4 @@ class FrameAnimator
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_FrameAnimator_h
#endif // mozilla_image_FrameAnimator_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/FrozenImage.h → image/FrozenImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_FrozenImage_h
#define mozilla_image_src_FrozenImage_h
#ifndef mozilla_image_FrozenImage_h
#define mozilla_image_FrozenImage_h

#include "ImageWrapper.h"
#include "mozilla/gfx/2D.h"
Expand Down Expand Up @@ -66,4 +66,4 @@ class FrozenImage : public ImageWrapper
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_FrozenImage_h
#endif // mozilla_image_FrozenImage_h
6 changes: 3 additions & 3 deletions image/src/ICOFileHeaders.h → image/ICOFileHeaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_image_src_ICOFileHeaders_h
#define mozilla_image_src_ICOFileHeaders_h
#ifndef mozilla_image_ICOFileHeaders_h
#define mozilla_image_ICOFileHeaders_h

namespace mozilla {
namespace image {
Expand Down Expand Up @@ -78,4 +78,4 @@ struct IconDirEntry
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ICOFileHeaders_h
#endif // mozilla_image_ICOFileHeaders_h
6 changes: 3 additions & 3 deletions image/src/IProgressObserver.h → image/IProgressObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_IProgressObserver_h
#define mozilla_image_src_IProgressObserver_h
#ifndef mozilla_image_IProgressObserver_h
#define mozilla_image_IProgressObserver_h

#include "mozilla/WeakPtr.h"
#include "nsISupports.h"
Expand Down Expand Up @@ -56,4 +56,4 @@ class IProgressObserver : public SupportsWeakPtr<IProgressObserver>
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_IProgressObserver_h
#endif // mozilla_image_IProgressObserver_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/Image.h → image/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_Image_h
#define mozilla_image_src_Image_h
#ifndef mozilla_image_Image_h
#define mozilla_image_Image_h

#include "mozilla/MemoryReporting.h"
#include "mozilla/TimeStamp.h"
Expand Down Expand Up @@ -339,4 +339,4 @@ class ImageResource : public Image
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_Image_h
#endif // mozilla_image_Image_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ImageFactory.h → image/ImageFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* 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 mozilla_image_src_ImageFactory_h
#define mozilla_image_src_ImageFactory_h
#ifndef mozilla_image_ImageFactory_h
#define mozilla_image_ImageFactory_h

#include "nsCOMPtr.h"
#include "nsProxyRelease.h"
Expand Down Expand Up @@ -92,4 +92,4 @@ class ImageFactory
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageFactory_h
#endif // mozilla_image_ImageFactory_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ImageMetadata.h → image/ImageMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* 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 mozilla_image_src_ImageMetadata_h
#define mozilla_image_src_ImageMetadata_h
#ifndef mozilla_image_ImageMetadata_h
#define mozilla_image_ImageMetadata_h

#include <stdint.h>
#include "mozilla/Maybe.h"
Expand Down Expand Up @@ -71,4 +71,4 @@ class ImageMetadata
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageMetadata_h
#endif // mozilla_image_ImageMetadata_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ImageOps.h → image/ImageOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* 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 mozilla_image_src_ImageOps_h
#define mozilla_image_src_ImageOps_h
#ifndef mozilla_image_ImageOps_h
#define mozilla_image_ImageOps_h

#include "nsCOMPtr.h"
#include "nsRect.h"
Expand Down Expand Up @@ -69,4 +69,4 @@ class ImageOps
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageOps_h
#endif // mozilla_image_ImageOps_h
6 changes: 3 additions & 3 deletions image/src/ImageRegion.h → image/ImageRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_ImageRegion_h
#define mozilla_image_src_ImageRegion_h
#ifndef mozilla_image_ImageRegion_h
#define mozilla_image_ImageRegion_h

#include "gfxRect.h"

Expand Down Expand Up @@ -155,4 +155,4 @@ class ImageRegion
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageRegion_h
#endif // mozilla_image_ImageRegion_h
6 changes: 3 additions & 3 deletions image/src/ImageURL.h → image/ImageURL.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_ImageURL_h
#define mozilla_image_src_ImageURL_h
#ifndef mozilla_image_ImageURL_h
#define mozilla_image_ImageURL_h

#include "nsIURI.h"
#include "MainThreadUtils.h"
Expand Down Expand Up @@ -90,4 +90,4 @@ class ImageURL
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageURL_h
#endif // mozilla_image_ImageURL_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ImageWrapper.h → image/ImageWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_ImageWrapper_h
#define mozilla_image_src_ImageWrapper_h
#ifndef mozilla_image_ImageWrapper_h
#define mozilla_image_ImageWrapper_h

#include "mozilla/MemoryReporting.h"
#include "Image.h"
Expand Down Expand Up @@ -82,4 +82,4 @@ class ImageWrapper : public Image
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ImageWrapper_h
#endif // mozilla_image_ImageWrapper_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/MultipartImage.h → image/MultipartImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_MultipartImage_h
#define mozilla_image_src_MultipartImage_h
#ifndef mozilla_image_MultipartImage_h
#define mozilla_image_MultipartImage_h

#include "ImageWrapper.h"
#include "IProgressObserver.h"
Expand Down Expand Up @@ -88,4 +88,4 @@ class MultipartImage
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_MultipartImage_h
#endif // mozilla_image_MultipartImage_h
6 changes: 3 additions & 3 deletions image/src/Orientation.h → image/Orientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_Orientation_h
#define mozilla_image_src_Orientation_h
#ifndef mozilla_image_Orientation_h
#define mozilla_image_Orientation_h

#include <stdint.h>

Expand Down Expand Up @@ -59,4 +59,4 @@ struct Orientation
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_Orientation_h
#endif // mozilla_image_Orientation_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/OrientedImage.h → image/OrientedImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* 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 mozilla_image_src_OrientedImage_h
#define mozilla_image_src_OrientedImage_h
#ifndef mozilla_image_OrientedImage_h
#define mozilla_image_OrientedImage_h

#include "ImageWrapper.h"
#include "mozilla/gfx/2D.h"
Expand Down Expand Up @@ -72,4 +72,4 @@ class OrientedImage : public ImageWrapper
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_OrientedImage_h
#endif // mozilla_image_OrientedImage_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/ProgressTracker.h → image/ProgressTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* 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 mozilla_image_src_ProgressTracker_h
#define mozilla_image_src_ProgressTracker_h
#ifndef mozilla_image_ProgressTracker_h
#define mozilla_image_ProgressTracker_h

#include "mozilla/Mutex.h"
#include "mozilla/RefPtr.h"
Expand Down Expand Up @@ -208,4 +208,4 @@ class ProgressTracker : public mozilla::SupportsWeakPtr<ProgressTracker>
} // namespace image
} // namespace mozilla

#endif // mozilla_image_src_ProgressTracker_h
#endif // mozilla_image_ProgressTracker_h
File renamed without changes.
6 changes: 3 additions & 3 deletions image/src/RasterImage.h → image/RasterImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* @author Andrew Smith <[email protected]>
*/

#ifndef mozilla_image_src_RasterImage_h
#define mozilla_image_src_RasterImage_h
#ifndef mozilla_image_RasterImage_h
#define mozilla_image_RasterImage_h

#include "Image.h"
#include "nsCOMPtr.h"
Expand Down Expand Up @@ -486,4 +486,4 @@ RasterImage::GetAnimationMode(uint16_t* aAnimationMode) {
} // namespace image
} // namespace mozilla

#endif /* mozilla_image_src_RasterImage_h */
#endif /* mozilla_image_RasterImage_h */
File renamed without changes.
Loading

0 comments on commit 0393a38

Please sign in to comment.