Bug 928041 - Remove some prtypes.h inclusions from widget/; r=roc
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 18 Oct 2013 00:11:58 -0400
changeset 165111 8b64180059f9d6c67354aadb8359d90ba1df78ec
parent 164998 2def80d5a106187ddd2d19bcd8efe975edd46e7f
child 165112 8ee916cacd478cc3969410dc80e6e6982a6f79dd
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs928041
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 928041 - Remove some prtypes.h inclusions from widget/; r=roc
widget/android/nsAppShell.cpp
widget/gtk/nsCUPSShim.h
widget/gtk/nsPSPrinters.h
widget/gtk/nsPaperPS.h
widget/qt/mozSwipeGesture.cpp
widget/windows/nsDataObj.cpp
widget/xpwidgets/nsPrimitiveHelpers.h
--- a/widget/android/nsAppShell.cpp
+++ b/widget/android/nsAppShell.cpp
@@ -1,17 +1,16 @@
 /* -*- Mode: c++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4; -*- */
 /* 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 "nsAppShell.h"
 
 #include "base/basictypes.h"
-#include "nspr/prtypes.h"
 #include "base/message_loop.h"
 #include "base/task.h"
 #include "mozilla/Hal.h"
 #include "nsIScreen.h"
 #include "nsIScreenManager.h"
 #include "nsWindow.h"
 #include "nsThreadUtils.h"
 #include "nsICommandLineRunner.h"
--- a/widget/gtk/nsCUPSShim.h
+++ b/widget/gtk/nsCUPSShim.h
@@ -2,17 +2,16 @@
 /* ex: set tabstop=8 softtabstop=4 shiftwidth=4 expandtab: */
 /* 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 nsCUPSShim_h___
 #define nsCUPSShim_h___
 
-#include "prtypes.h"
 
 /* Various CUPS data types. We don't #include cups headers to avoid
  * requiring CUPS to be installed on the build host (and to avoid having
  * to test for CUPS in configure).
  */
 typedef struct                          /**** Printer Options ****/
 {
     char          *name;                  /* Name of option */
--- a/widget/gtk/nsPSPrinters.h
+++ b/widget/gtk/nsPSPrinters.h
@@ -4,17 +4,16 @@
  * 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 nsPSPrinters_h___
 #define nsPSPrinters_h___
 
 #include "nsString.h"
 #include "nsTArray.h"
-#include "prtypes.h"
 
 class nsCUPSShim;
 
 class nsPSPrinterList {
     public:
         nsPSPrinterList();
 
         /**
--- a/widget/gtk/nsPaperPS.h
+++ b/widget/gtk/nsPaperPS.h
@@ -3,17 +3,16 @@
 /* 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 _PAPERPS_H_
 #define _PAPERPS_H_
 
-#include "prtypes.h"
 #include "nsDebug.h"
 
 struct nsPaperSizePS_ {
     const char *name;
     float width_mm;
     float height_mm;
     bool isMetric;        // Present to the user in metric, if possible
 };
--- a/widget/qt/mozSwipeGesture.cpp
+++ b/widget/qt/mozSwipeGesture.cpp
@@ -2,17 +2,16 @@
 /* vim:expandtab:shiftwidth=4:tabstop=4:
  */
 /* 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 "mozSwipeGesture.h"
 #include <QTouchEvent>
 #include <QGraphicsWidget>
-#include <prtypes.h>
 #include <nsIDOMSimpleGestureEvent.h>
 #include <math.h>
 
 // Percent of screen size
 static const float TRIGGER_DISTANCE = 0.3;
 
 // It would be nice to get platform defines for these values
 // Maximum finger distance in pixels
--- a/widget/windows/nsDataObj.cpp
+++ b/widget/windows/nsDataObj.cpp
@@ -20,17 +20,16 @@
 #include "nsCRT.h"
 #include "nsPrintfCString.h"
 #include "nsIStringBundle.h"
 #include "nsEscape.h"
 #include "nsIURL.h"
 #include "nsNetUtil.h"
 #include "nsXPCOMStrings.h"
 #include "nscore.h"
-#include "prtypes.h"
 #include "nsDirectoryServiceDefs.h"
 #include "nsITimer.h"
 #include "nsThreadUtils.h"
 #include "mozilla/Preferences.h"
 
 #include "WinUtils.h"
 #include "mozilla/LazyIdleThread.h"
 #include <algorithm>
--- a/widget/xpwidgets/nsPrimitiveHelpers.h
+++ b/widget/xpwidgets/nsPrimitiveHelpers.h
@@ -2,17 +2,16 @@
  *
  * 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 nsPrimitiveHelpers_h___
 #define nsPrimitiveHelpers_h___
 
-#include "prtypes.h"
 #include "nsError.h"
 #include "nscore.h"
 
 class nsISupports;
 
 
 class nsPrimitiveHelpers
 {