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

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

Issue 2227293002: Add RAIL tracing category to Chrome tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing PaintTiming markers Created 4 years, 4 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 // case, the form submission happens before the autofill client is told 2153 // case, the form submission happens before the autofill client is told
2154 // to unblock the password values, and so the password values are not 2154 // to unblock the password values, and so the password values are not
2155 // submitted. To avoid that, GestureTap is handled explicitly: 2155 // submitted. To avoid that, GestureTap is handled explicitly:
2156 if (inputEvent.type == WebInputEvent::GestureTap && autofillClient) { 2156 if (inputEvent.type == WebInputEvent::GestureTap && autofillClient) {
2157 m_userGestureObserved = true; 2157 m_userGestureObserved = true;
2158 autofillClient->firstUserGestureObserved(); 2158 autofillClient->firstUserGestureObserved();
2159 } 2159 }
2160 2160
2161 page()->frameHost().visualViewport().startTrackingPinchStats(); 2161 page()->frameHost().visualViewport().startTrackingPinchStats();
2162 2162
2163 TRACE_EVENT1("input", "WebViewImpl::handleInputEvent", "type", inputTypeToNa me(inputEvent.type)); 2163 TRACE_EVENT1("input,rail", "WebViewImpl::handleInputEvent", "type", inputTyp eToName(inputEvent.type));
2164 // If we've started a drag and drop operation, ignore input events until 2164 // If we've started a drag and drop operation, ignore input events until
2165 // we're done. 2165 // we're done.
2166 if (m_doingDragAndDrop) 2166 if (m_doingDragAndDrop)
2167 return WebInputEventResult::HandledSuppressed; 2167 return WebInputEventResult::HandledSuppressed;
2168 2168
2169 if (m_devToolsEmulator->handleInputEvent(inputEvent)) 2169 if (m_devToolsEmulator->handleInputEvent(inputEvent))
2170 return WebInputEventResult::HandledSuppressed; 2170 return WebInputEventResult::HandledSuppressed;
2171 2171
2172 if (InspectorOverlay* overlay = inspectorOverlay()) { 2172 if (InspectorOverlay* overlay = inspectorOverlay()) {
2173 if (overlay->handleInputEvent(inputEvent)) 2173 if (overlay->handleInputEvent(inputEvent))
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
4627 return nullptr; 4627 return nullptr;
4628 return focusedFrame; 4628 return focusedFrame;
4629 } 4629 }
4630 4630
4631 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const 4631 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const
4632 { 4632 {
4633 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4633 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4634 } 4634 }
4635 4635
4636 } // namespace blink 4636 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698