Commit Graph

10423 Commits

Author SHA1 Message Date
Brian Birtles
14f0094c87 Bug 1026803 part 8b - Factor out an IsTimeNewerThanTimeStamp method; r=karlt 2015-08-12 13:19:14 +09:00
Brian Birtles
d516ed9ec8 Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt 2015-08-12 10:35:38 +09:00
Brian Birtles
90c1e69ad6 Bug 1026803 part 7 - Store the CurrentX11TimeGetter as a member object on nsWindow; r=karlt
In preparation for making CurrentX11TimeGetter capable of performing an
asynchronous request of the current time, this patch revises the lifetime of
such objects so that they are stored on nsWindow.
2015-08-11 17:13:44 +09:00
Brian Birtles
ea9bac21ec Bug 1026803 part 6 - Make SystemTimeConverter detect clock skew; r=karlt
This patch revises the logic in SystemTimeConverter to detect backwards and
forwards skew between the two time sources: the native time source (represented
by the Time type) and the time source used to generate TimeStamp objects.
2015-08-11 17:11:41 +09:00
Brian Birtles
88c8512632 Bug 1026803 part 5 - Convert CurrentXXXTimeGetter classes from functors to helper classes; r=karlt
Previously the CurrentX11TimeGetter and CurrentWindowsTimeGetter classes acted
as functors with a single operator() method. In preparation for handling clock
skew, this patch refactors these two helper classes into regular classes with
two named methods:

  GetCurrentTime which matches the existing operator() method, and

  GetTimeAsyncForPossibleBackwardsSkew which will be used when possible
  backwards skew is detected to fetch the current time asynchronously.

Some renaming is also included to match the expanded role of these classes.
2015-02-19 14:10:00 +09:00
Brian Birtles
b59684e8fb Bug 1026803 part 4 - Convert GTK native event times to timestamps; r=karlt
This patch adds a helper class to widgets/gtk/nsWindow.cpp similar to the one in
widgets/windows/nsWindow.cpp and uses it to convert native event times to
mozilla::TimeStamp objects on events returned by this class.

This is similar to the operations performed for Windows native event times that
were added in bug 77992.
2015-08-11 16:40:34 +09:00
Brian Birtles
d0c832649d Bug 1026803 part 3 - Make some simplifications to SystemTimeConverter; r=karlt
This patch exploits the fact that the underlying Time type is an unsigned
integer to simplify some of the overflow checks in SystemTimeConvert by relying
on unsigned integer overflow behavior, which, unlike signed integer overflow, is
well-defined.
2015-02-19 14:06:01 +09:00
Brian Birtles
d66eb936c0 Bug 1026803 part 2 - Add an assertion that SystemTimeConverter's template parameter is unsigned; r=karlt
Various operations in the time conversion assume that the native event time is
an unsigned integer so this patch adds and assertion to check this precondition
is met.
2015-02-19 14:05:42 +09:00
Brian Birtles
721bc41ea4 Bug 1026803 part 1 - Factor out a common utility class for converting wrapping native times to TimeStamps; r=karlt
This just moves the code from widget/windows/nsWindow.cpp to a template class in
widget/xpwidgets/WrappingTimeConverter.h so that we can reuse this code for
other platforms (GTK at least).
2015-08-11 13:38:18 +09:00
Ryan VanderMeulen
a7890c1d6f Merge inbound to m-c. a=merge 2015-08-23 17:18:36 -04:00
Masayuki Nakano
c621fb4df5 Bug 930843 part.2 NS_UI_ACTIVATE event should be trusted event even if it's caused by an untrusted event r=smaug 2015-08-22 13:02:39 +09:00
Boris Chiou
c42b47e1cb Bug 952456 - Part 1: Implement gonk/nsClipboard for rich text and raw image. r=fabrice
Handle text/html and image MIME types on gonk/nsClipboard
2015-08-19 22:52:00 -04:00
Masayuki Nakano
6cbaec265f Bug 895274 part.2 Define event messages as anonymous enum with EventMessageList.h r=smaug 2015-08-22 10:34:51 +09:00
Masayuki Nakano
d56a7cc348 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
Andrew Comminos
18eda6e003 Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt 2015-08-21 16:38:15 -04:00
Masayuki Nakano
d6611e2a88 Bug 1189396 part.4 IMEContentObserver should cache the selection data at notifying IME of selection change r=smaug 2015-08-22 01:43:41 +09:00
Masayuki Nakano
ba06831681 Bug 1189396 part.3 Make IMENotification::SelectionChangeData useful even outside of IMENotification r=smaug 2015-08-22 01:43:41 +09:00
Masayuki Nakano
1e98004272 Bug 1189396 part.2 Implement IMENotification::SelectionChangeData::Assign() to copy its members r=smaug 2015-08-22 01:43:41 +09:00
Masayuki Nakano
a662044ce2 Bug 1189396 part.1 Implement IMENotification::SelectionChangeData::Clear() to initialize its members r=smaug 2015-08-22 01:43:41 +09:00
Wes Kocher
8a06308208 Merge inbound to central, a=merge 2015-08-20 12:42:21 -07:00
Masayuki Nakano
7385e5e621 Bug 90712 Cancel composition when Enter key message isn't consumed by IME r=m_kato 2015-08-20 17:31:10 +09:00
Wes Kocher
8a4a00d18f Merge m-c to b2ginbound, a=merge 2015-08-19 17:14:04 -07:00
Samael Wang
904f52b265 Bug 1177335 - Skip resampling if the time difference of touches is less than 2ms. 2015-08-19 13:02:21 +08:00
Masayuki Nakano
2e4d980eea Bug 1196124 Fix mismatch of printf style string and following arguments of MOZ_LOG() in IMMHandler::GetCharacterRectOfSelectedTextAt() r=m_kato 2015-08-20 11:40:14 +09:00
Milan Sreckovic
91184fe12b Bug 1188105: Parse bad driver versions. r=botond 2015-08-19 15:14:59 -07:00
Masayuki Nakano
580a61e26e Bug 299603 part.8 Rename aLastDispatchedData with aCompositionString in IMContextWrapper::CreateTextRangeArray() r=m_kato 2015-08-19 16:37:39 +09:00
Masayuki Nakano
fed80aad8b Bug 299603 part.7 IMContextWrapper::CreateTextRange() should convert the caret offset from offset in characters to offset in UTF-16 r=m_kato 2015-08-19 16:37:39 +09:00
Masayuki Nakano
0c2d8d2d8c Bug 299603 part.6 Guess the meaning of each clause in the composition string with caret position r=m_kato 2015-08-19 16:37:39 +09:00
Masayuki Nakano
4b8097cd96 Bug 299603 part.3 IMContextWrapper::SetTextRange() shold set the style of the range which is specified by the IME r=m_kato 2015-08-19 16:37:39 +09:00
Masayuki Nakano
6f0e893a2f Bug 299603 part.2 IMContextWrapper::SetTextRange() should initialize the range offsets and fail if the range is collapsed r=m_kato 2015-08-19 16:37:39 +09:00
Masayuki Nakano
c01cde218b Bug 299603 part.1 IMContextWrapper should have a method to initialize a TextRange r=m_kato 2015-08-19 16:37:39 +09:00
William Chen
9db64a26eb Bug 1131470 - Part 2: Update screen configuration HAL to report orientation angle. r=snorp,mwu 2015-08-18 14:55:15 -07:00
William Chen
cb7d38cf1d Bug 1131470 - Part 1: Rename existing use of ScreenOrientation to ScreenOrientationInternal. r=baku 2015-08-18 14:55:09 -07:00
Wes Kocher
e350be705b Backed out changeset de7aa6b08234 (bug 1194055) for windows 8 reftest failures CLOSED TREE 2015-08-18 12:09:56 -07:00
Kartikaya Gupta
99cbf4f698 Bug 1180295 - Implement seamless snapping to the stable state. r=rbarker 2015-08-18 14:27:20 -04:00
Kartikaya Gupta
36de569f91 Bug 1180295 - Stop clipping the content while the toolbar is in the process of sliding off. r=rbarker 2015-08-18 14:27:19 -04:00
Kartikaya Gupta
337fd5b15d Bug 1180295 - Store the viewport width and height as integers instead of floats in ImmutableViewportMetrics. r=rbarker 2015-08-18 14:27:19 -04:00
Kartikaya Gupta
17f8044764 Bug 1180295 - Rip out the Fennec code to set the screen render offset. r=rbarker 2015-08-18 14:27:18 -04:00
Mike Conley
1e70cc6dd0 Bug 1184604 - Lazily override printer output format on Linux if not already set. r=karlt
GTK versions prior to 2.24 incorrectly advertise themselves as able to print PDFs,
even when they can't. We were wholesale setting the output format to PostScript for
these older GTK versions, without giving the user the opportunity to override
it. We now lazily determine whether or not the output should be in PostScript,
which should give the user the opportunity to override.
2015-07-31 13:53:49 -04:00
Jonathan Kew
fe31ceeacb Bug 1194055 - GetSysFontInfo should return MS Shell Dlg 2 for eFont_Field and eFont_List on Windows. r=masayuki 2015-08-18 17:21:38 +01:00
Chris Manchester
1aef50f858 Bug 1131325 - Move system country code from nsIGfxInfo2 to a more appropriate location. r=aklotz,smichaud 2015-07-28 15:45:34 -07:00
Jonathan Kew
25f52e700a Bug 1194055 - GetSysFontInfo should return MS Shell Dlg 2 for eFont_Field and eFont_List on Windows. r=masayuki 2015-08-18 17:21:38 +01:00
Nathan Froyd
fe8542ddd3 Bug 1194806 - part 5 - mark function pointer-to-members with JNICALL appropriately; r=snorp,jchen 2015-08-14 23:03:45 -04:00
Nathan Froyd
b5ed5dfe85 Bug 1194806 - part 4 - use |typename| to refer to trait class typedefs, not |class|; r=jchen 2015-08-14 22:34:16 -04:00
Nathan Froyd
3667ac69a8 Bug 1194806 - part 3 - consistently declare dom::mobilemessage::SmsFilterData as a class; r=snorp 2015-08-14 22:22:50 -04:00
Nathan Froyd
e1cd12ff2d Bug 1194806 - part 2 - mark overrides as such in widget/android/; r=snorp 2015-08-14 22:06:20 -04:00
Nathan Froyd
a8df96257b Bug 1194806 - part 1 - consistently declare mozilla::jni::detail::TypeAdaptor as a struct; r=jchen
clang doesn't like it when we declare things as a struct in one place
and a class in another.  This change makes all the current usages
consistent and clang happy.
2015-08-14 21:59:27 -04:00
Mike Hommey
71dfb17528 Bug 1194497 - Convert a few remaining PRUnichar to char16_t. r=roc 2015-08-18 08:09:14 +09:00
Masayuki Nakano
46749ea6da Bug 555642 part.2 IME handlers on Windows shouldn't append caret range if the caret is in the target clause which doesn't have specific style r=m_kato 2015-08-17 20:58:38 +09:00
Ryan VanderMeulen
eb4673b9d6 Merge m-c to inbound. a=merge 2015-08-14 15:18:21 -04:00