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

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

Issue 2517253002: Drop down list closes on touch scroll/pinch zoom (Closed)
Patch Set: Created 4 years 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 eventResult = 897 eventResult =
898 mainFrameImpl()->frame()->eventHandler().handleGestureEvent( 898 mainFrameImpl()->frame()->eventHandler().handleGestureEvent(
899 targetedEvent); 899 targetedEvent);
900 } 900 }
901 901
902 break; 902 break;
903 } 903 }
904 case WebInputEvent::GestureShowPress: 904 case WebInputEvent::GestureShowPress:
905 m_client->cancelScheduledContentIntents(); 905 m_client->cancelScheduledContentIntents();
906 case WebInputEvent::GestureTapDown: 906 case WebInputEvent::GestureTapDown:
907 // Touch pinch zoom and scroll must hide the popup.
bokan 2016/11/21 20:14:36 Is this comment meant to be a TODO? If so add TODO
sahel 2016/11/21 20:41:44 No, it's not a todo, it's the reason for adding th
bokan 2016/11/21 21:09:17 Where does the translation happen from GesturePinc
sahel 2016/11/22 14:31:06 I believe there isn't any translations. In gesture
bokan 2016/11/22 16:00:08 Ah, ok thanks. I didn't know that. (Please add a c
sahel 2016/11/24 15:29:25 Done.
908 hidePopups();
907 case WebInputEvent::GestureTapCancel: 909 case WebInputEvent::GestureTapCancel:
908 case WebInputEvent::GestureTapUnconfirmed: { 910 case WebInputEvent::GestureTapUnconfirmed: {
909 eventResult = mainFrameImpl()->frame()->eventHandler().handleGestureEvent( 911 eventResult = mainFrameImpl()->frame()->eventHandler().handleGestureEvent(
910 targetedEvent); 912 targetedEvent);
911 break; 913 break;
912 } 914 }
913 default: 915 default:
914 NOTREACHED(); 916 NOTREACHED();
915 } 917 }
916 m_client->didHandleGestureEvent(event, eventCancelled); 918 m_client->didHandleGestureEvent(event, eventCancelled);
(...skipping 3281 matching lines...) Expand 10 before | Expand all | Expand 10 after
4198 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4200 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4199 return nullptr; 4201 return nullptr;
4200 return focusedFrame; 4202 return focusedFrame;
4201 } 4203 }
4202 4204
4203 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4205 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4204 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4206 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4205 } 4207 }
4206 4208
4207 } // namespace blink 4209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698