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

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: 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 4905 matching lines...) Expand 10 before | Expand all | Expand 10 after
4916 4916
4917 void RenderViewImpl::Close() { 4917 void RenderViewImpl::Close() {
4918 // We need to grab a pointer to the doomed WebView before we destroy it. 4918 // We need to grab a pointer to the doomed WebView before we destroy it.
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 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidHandleKeyEvent());
4926 ClearEditCommands(); 4927 ClearEditCommands();
4927 } 4928 }
4928 4929
4929 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { 4930 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) {
4930 possible_drag_event_info_.event_source = 4931 possible_drag_event_info_.event_source =
4931 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; 4932 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE;
4932 possible_drag_event_info_.event_location = 4933 possible_drag_event_info_.event_location =
4933 gfx::Point(event.globalX, event.globalY); 4934 gfx::Point(event.globalX, event.globalY);
4934 4935
4935 #if defined(ENABLE_PLUGINS) 4936 #if defined(ENABLE_PLUGINS)
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
5783 for (size_t i = 0; i < icon_urls.size(); i++) { 5784 for (size_t i = 0; i < icon_urls.size(); i++) {
5784 WebURL url = icon_urls[i].iconURL(); 5785 WebURL url = icon_urls[i].iconURL();
5785 if (!url.isEmpty()) 5786 if (!url.isEmpty())
5786 urls.push_back(FaviconURL(url, 5787 urls.push_back(FaviconURL(url,
5787 ToFaviconType(icon_urls[i].iconType()))); 5788 ToFaviconType(icon_urls[i].iconType())));
5788 } 5789 }
5789 SendUpdateFaviconURL(urls); 5790 SendUpdateFaviconURL(urls);
5790 } 5791 }
5791 5792
5792 } // namespace content 5793 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698