Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Fix a few DCHECK hits Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 372
373 node->dispatchMouseEvent( 373 node->dispatchMouseEvent(
374 PlatformMouseEventBuilder( 374 PlatformMouseEventBuilder(
375 m_localRoot->frameView(), 375 m_localRoot->frameView(),
376 static_cast<const WebMouseEvent&>(inputEvent)), 376 static_cast<const WebMouseEvent&>(inputEvent)),
377 eventType, static_cast<const WebMouseEvent&>(inputEvent).clickCount); 377 eventType, static_cast<const WebMouseEvent&>(inputEvent).clickCount);
378 return WebInputEventResult::HandledSystem; 378 return WebInputEventResult::HandledSystem;
379 } 379 }
380 380
381 return PageWidgetDelegate::handleInputEvent(*this, inputEvent, 381 return PageWidgetDelegate::handleInputEvent(
382 m_localRoot->frame()); 382 *this, WebCoalescedInputEvent(inputEvent), m_localRoot->frame());
383 } 383 }
384 384
385 void WebFrameWidgetImpl::setCursorVisibilityState(bool isVisible) { 385 void WebFrameWidgetImpl::setCursorVisibilityState(bool isVisible) {
386 page()->setIsCursorVisible(isVisible); 386 page()->setIsCursorVisible(isVisible);
387 } 387 }
388 388
389 bool WebFrameWidgetImpl::hasTouchEventHandlersAt(const WebPoint& point) { 389 bool WebFrameWidgetImpl::hasTouchEventHandlersAt(const WebPoint& point) {
390 // FIXME: Implement this. Note that the point must be divided by 390 // FIXME: Implement this. Note that the point must be divided by
391 // pageScaleFactor. 391 // pageScaleFactor.
392 return true; 392 return true;
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 return nullptr; 1139 return nullptr;
1140 } 1140 }
1141 1141
1142 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { 1142 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const {
1143 if (!m_imeAcceptEvents) 1143 if (!m_imeAcceptEvents)
1144 return nullptr; 1144 return nullptr;
1145 return focusedLocalFrameInWidget(); 1145 return focusedLocalFrameInWidget();
1146 } 1146 }
1147 1147
1148 } // namespace blink 1148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698