Граф коммитов

145 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote d5fcd40f2f Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats.
--HG--
extra : rebase_source : 5f07908c287af3e6e272047a72837641a4d6824e
2015-11-12 05:44:43 -08:00
Nicholas Nethercote ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote 8da254d570 Bug 1204518 - Fix warnings in widget/gonk/. r=mwu.
Warnings fixed include the following.

- Several cases where macros (|LOG| and |ALOGE|) were redefined. I just did a
  simple #undef to fix these.

- In GonkMemoryPressureMonitoring.cpp, "the address of NuwaMarkCurrentThread
  will never be NULL".

- In OrientationObserver.cpp, several signed/unsigned comparison warnings.

- Several warnings about variables that are unused or set but not used:
  in InputDispatcher.cpp, InputReader.cpp.

  Also in SpriteController, where several loops were all but empty if
  HAVE_ANDROID_OS is undefined; for these I moved the HAVE_ANDROID_OS check
  outside the loop.

The patch also disallows the introduction of new warnings by removing the
ALLOW_COMPILER_WARNINGS flag.

--HG--
extra : rebase_source : 6dc19235cf992b929d1308fd98baa03e16701874
2015-09-14 18:08:56 -07:00
Fabrice Desré 97a01329d8 Bug 1192122 - Safe mode startup, Part 1: check the power key state at startup r=mwu
* * *
Bug 1192122 - Safe mode startup, Part 2: shell.js hook
2015-09-04 11:12:48 -07:00
Masayuki Nakano ba5b3f3fe6 Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano 28c9f34179 Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano d311a11cc1 Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano 0d22745cda Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Sotaro Ikeda 813272f335 Bug 1112219 - Implement platform independent MediaResourceManager r=cpearce,bwu,nical 2015-07-05 11:56:04 -07:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
JerryShih b31a33ca20 Bug 1165161 - stop bootAnim with "browser-ui-startup-complete" event. r=mwu
--HG--
extra : rebase_source : 3dc5523f292d83eefbb9b2afe895f1a12e9e4776
2015-06-05 00:30:00 +02:00
Boris Chiou af54ebf11f Bug 1172805 - Fix enum comparison warnings in nsAppShell. r=mwu 2015-06-09 00:11:00 -04:00
Daniel Holbert 7d7c2e5ca3 Bug 1163871: Use DebugOnly to suppress opt build warning in gonk nsAppShell.cpp. r=mwu 2015-05-11 18:27:34 -07:00
Henry Chang 223dec8c91 Bug 1154648 - Rename static gonk nsWindow::DispatchInputEvent. r=mwu 2015-04-15 17:45:18 +08:00
Sotaro Ikeda ed293afca5 Bug 1157874 - Remove screen related global variables from nsWindow.cpp r=mwu 2015-04-29 20:17:57 -07:00
Mason Chang d81b5a205d Bug 1129133 - Clean up GeckoTouchDispatcher so that it's a real singleton. r=kats,mwu 2015-02-24 12:52:16 -08:00
Masayuki Nakano 39018f5127 Bug 936313 part.2 Compute DOM key location from code value on Android and Gonk r=smaug+mwu+cpeterson 2015-01-28 22:36:53 +09:00
Masayuki Nakano 7a0cea6729 Bug 936313 part.1 Remove DOM_KEY_LOCATION_MOBILE and DOM_KEY_LOCATION_JOYSTICK r=smaug+mwu+cpeterson, sr=smaug 2015-01-28 22:36:53 +09:00
Mason Chang 3027d1493e Bug 1101974. Part 6. Create VsyncSource on b2g. r=kats 2014-12-18 08:30:06 -08:00
Mason Chang de0e409177 bug 552020 Part 3: Enable Creation of mozilla::TimeStamp from system timestamps. r=roc 2014-11-18 13:28:42 -08:00
Ryan VanderMeulen 87e1d173f4 Backed out changesets a99bd0b3b075, a7fb851f823a, and 9fc2d99376cd (bug 552020) for non-unified bustage and OSX 10.6 tsvgr crashes.
CLOSED TREE
2014-11-14 15:57:35 -05:00
Mason Chang 89dd1bd2d2 Bug 552020. Part 3: Enable creation of mozilla::TimeStamp from system Timestamps. r=roc 2014-11-14 08:31:04 -08:00
Mason Chang fb2714672f bug 1083530. Part 2 Refactor GeckoTouchDispacher to use mozilla::Timestamp instead of nsecs_t. r=mwu 2014-10-29 13:37:06 -07:00
Viral Wang 0146130ed4 Bug 932698 - hold a wakelock when we receive key events. r=mwu 2014-10-17 03:44:00 +02:00
Jinho Hwang 367e495b76 Bug 1055961 - Touch.radiusX always returns zero. r=mwu 2014-09-24 19:00:00 -04:00
Mason Chang af4c957798 Bug 1062438 Hamachi asserting on unknown touch type. r=mwu 2014-09-03 11:00:56 -07:00
Mason Chang acd46de08c Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-31 15:38:00 -07:00
Mason Chang 5327fee772 backout of bug 970751 for intermittent ICS Debug. 2014-08-30 17:18:29 -07:00
Mason Chang d6b0a95fda Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-30 14:04:15 -07:00
Wes Kocher 8e3978db94 Backed out changeset 3ab215c50844 (bug 970751) for leaks a=backout 2014-08-29 17:43:17 -07:00
Mason Chang a66b70e1af Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-29 16:18:04 -07:00
Doug Sherk f6cc8801a7 Backed out changeset 8a06f8cd41a9 (bug 1037066) for regressions: bug 1055214, bug 1049250, bug 1055203. 2014-08-22 15:12:13 -04:00
Kartikaya Gupta 2328aecd74 Bug 1055532 - Don't dispatch useless widget events from gonk. r=mwu 2014-08-19 10:57:29 -04:00
Doug Sherk e24be367d0 Bug 1037066 - Simulate a touchmove in Gonk immediately after a touchstart in the same location. r=kats, r=mwu 2014-08-13 18:28:04 -04:00
Kartikaya Gupta 3b7ce74516 Bug 1047639 - Use the touch pointer id instead of the index when tracking up/downs. r=mwu 2014-08-11 19:12:30 -04:00
Anup Kumar 3fbe66a4ae Bug 1005209 - Warn anyone looking at the b2g-emulator stdout to look at logcat instead. r=dhylands
DONTBUILD
2014-07-09 23:15:00 -04:00
Ryan VanderMeulen 3d6e60eef3 Backed out changeset c3cca6dfcaa7 for landing with the wrong bug number. 2014-07-11 09:28:14 -04:00
Anup Kumar 62107a3c05 Bug 1002509 - Warn anyone looking at the b2g-emulator stdout to look at logcat instead. r=dhylands 2014-07-09 23:15:00 -04:00
Kershaw Chang 83e7e18fc5 Bug 964154 - To Detect Whether Headset Event is Came from Input Dev or /sys Node in Runtime Not by Property. r=dhylands 2014-07-01 19:52:00 +02:00
Mason Chang 4c76cc6e53 Bug 990832 - Build a tool to visualize frame uniformity. r=mchang, benwa. 2014-06-19 09:33:00 +02:00
Victor Porof 9ce7e9c089 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Masayuki Nakano 0fb6924886 Bug 865649 part.5 Set KeyboardEvent.code value on Android and Gonk r=smaug+nchen+mwu 2014-05-25 11:09:00 +09:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Star Cheng 8799eb119a Bug 987545 - The device support microphone is headset instead of headphone. r=mwu 2014-04-11 10:04:49 +08:00
Viral Wang ad9c6d8ad5 Bug 988110 - check the event index in action to make sure we have correct mTouchDownCount. r=gal 2014-04-09 20:24:00 +02:00
John Shih 04d698a1a5 Bug 960426 - Part 4: Support Network Information API in Fifrefox OS. r=vchang 2014-03-17 14:33:48 +08:00
Eric Rahm 917670ab77 Bug 971633 - Add filtering of expired input events. r=mwu 2014-03-12 17:31:09 -07:00