Bug 1211704 - Count key and IME events as UI events; r=esawin

GeckoEvent.KEY_EVENT and GeckoEvent.IME_EVENT used to count as UI events
for the hang monitor. We should count the new native calls as native
events too through this patch.
This commit is contained in:
Jim Chen
2015-10-22 17:45:47 -04:00
parent d918fabdca
commit 2f88413b81
4 changed files with 22 additions and 6 deletions

View File

@@ -383,7 +383,7 @@ public:
void Run() override;
void PostTo(mozilla::LinkedList<Event>& queue) override;
mozilla::HangMonitor::ActivityType ActivityType() const
Event::Type ActivityType() const override
{
return ae->IsInputEvent() ? mozilla::HangMonitor::kUIActivity
: mozilla::HangMonitor::kGeneralActivity;