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

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

Issue 2250233002: Type->String helper function added to WebInputEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blink_Common_export instead of blink_export Created 4 years, 3 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 FrameView* view = m_localRoot->frameView(); 324 FrameView* view = m_localRoot->frameView();
325 325
326 WebRect damagedRect(0, 0, m_size.width, m_size.height); 326 WebRect damagedRect(0, 0, m_size.width, m_size.height);
327 view->invalidateRect(damagedRect); 327 view->invalidateRect(damagedRect);
328 } 328 }
329 329
330 const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr; 330 const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr;
331 331
332 WebInputEventResult WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& in putEvent) 332 WebInputEventResult WebFrameWidgetImpl::handleInputEvent(const WebInputEvent& in putEvent)
333 { 333 {
334 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", inputT ypeToName(inputEvent.type)); 334 TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type", WebInp utEvent::GetName(inputEvent.type));
335 335
336 // Don't handle events once we've started shutting down. 336 // Don't handle events once we've started shutting down.
337 if (!page()) 337 if (!page())
338 return WebInputEventResult::NotHandled; 338 return WebInputEventResult::NotHandled;
339 339
340 // Report the event to be NOT processed by WebKit, so that the browser can h andle it appropriately. 340 // Report the event to be NOT processed by WebKit, so that the browser can h andle it appropriately.
341 if (m_ignoreInputEvents) 341 if (m_ignoreInputEvents)
342 return WebInputEventResult::NotHandled; 342 return WebInputEventResult::NotHandled;
343 343
344 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. 344 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available.
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 } 1457 }
1458 1458
1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const 1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const
1460 { 1460 {
1461 if (!m_imeAcceptEvents) 1461 if (!m_imeAcceptEvents)
1462 return nullptr; 1462 return nullptr;
1463 return focusedLocalFrameInWidget(); 1463 return focusedLocalFrameInWidget();
1464 } 1464 }
1465 1465
1466 } // namespace blink 1466 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698