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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 163843002: Fix check for user gesture on password autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New implementation using isUserGestureEventType Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 4908 matching lines...) Expand 10 before | Expand all | Expand 10 after
4919 WebView* doomed = webview(); 4919 WebView* doomed = webview();
4920 RenderWidget::Close(); 4920 RenderWidget::Close();
4921 g_view_map.Get().erase(doomed); 4921 g_view_map.Get().erase(doomed);
4922 g_routing_id_view_map.Get().erase(routing_id_); 4922 g_routing_id_view_map.Get().erase(routing_id_);
4923 } 4923 }
4924 4924
4925 void RenderViewImpl::DidHandleKeyEvent() { 4925 void RenderViewImpl::DidHandleKeyEvent() {
4926 ClearEditCommands(); 4926 ClearEditCommands();
4927 } 4927 }
4928 4928
4929 void RenderViewImpl::ProcessingUserGestureEvent() {
4930 FOR_EACH_OBSERVER(
4931 RenderViewObserver, observers_, ProcessingUserGestureEvent());
4932 }
4933
4929 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { 4934 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) {
4930 possible_drag_event_info_.event_source = 4935 possible_drag_event_info_.event_source =
4931 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; 4936 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE;
4932 possible_drag_event_info_.event_location = 4937 possible_drag_event_info_.event_location =
4933 gfx::Point(event.globalX, event.globalY); 4938 gfx::Point(event.globalX, event.globalY);
4934 4939
4935 #if defined(ENABLE_PLUGINS) 4940 #if defined(ENABLE_PLUGINS)
4936 // This method is called for every mouse event that the render view receives. 4941 // This method is called for every mouse event that the render view receives.
4937 // And then the mouse event is forwarded to WebKit, which dispatches it to the 4942 // And then the mouse event is forwarded to WebKit, which dispatches it to the
4938 // event target. Potentially a Pepper plugin will receive the event. 4943 // event target. Potentially a Pepper plugin will receive the event.
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
5783 for (size_t i = 0; i < icon_urls.size(); i++) { 5788 for (size_t i = 0; i < icon_urls.size(); i++) {
5784 WebURL url = icon_urls[i].iconURL(); 5789 WebURL url = icon_urls[i].iconURL();
5785 if (!url.isEmpty()) 5790 if (!url.isEmpty())
5786 urls.push_back(FaviconURL(url, 5791 urls.push_back(FaviconURL(url,
5787 ToFaviconType(icon_urls[i].iconType()))); 5792 ToFaviconType(icon_urls[i].iconType())));
5788 } 5793 }
5789 SendUpdateFaviconURL(urls); 5794 SendUpdateFaviconURL(urls);
5790 } 5795 }
5791 5796
5792 } // namespace content 5797 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698