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

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: Correct comment 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4675 matching lines...) Expand 10 before | Expand all | Expand 10 after
4686 WebView* doomed = webview(); 4686 WebView* doomed = webview();
4687 RenderWidget::Close(); 4687 RenderWidget::Close();
4688 g_view_map.Get().erase(doomed); 4688 g_view_map.Get().erase(doomed);
4689 g_routing_id_view_map.Get().erase(routing_id_); 4689 g_routing_id_view_map.Get().erase(routing_id_);
4690 } 4690 }
4691 4691
4692 void RenderViewImpl::DidHandleKeyEvent() { 4692 void RenderViewImpl::DidHandleKeyEvent() {
4693 ClearEditCommands(); 4693 ClearEditCommands();
4694 } 4694 }
4695 4695
4696 void RenderViewImpl::WillProcessUserGesture() {
4697 FOR_EACH_OBSERVER(
4698 RenderViewObserver, observers_, WillProcessUserGesture());
4699 }
4700
4696 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { 4701 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) {
4697 possible_drag_event_info_.event_source = 4702 possible_drag_event_info_.event_source =
4698 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; 4703 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE;
4699 possible_drag_event_info_.event_location = 4704 possible_drag_event_info_.event_location =
4700 gfx::Point(event.globalX, event.globalY); 4705 gfx::Point(event.globalX, event.globalY);
4701 4706
4702 #if defined(ENABLE_PLUGINS) 4707 #if defined(ENABLE_PLUGINS)
4703 // This method is called for every mouse event that the render view receives. 4708 // This method is called for every mouse event that the render view receives.
4704 // And then the mouse event is forwarded to WebKit, which dispatches it to the 4709 // And then the mouse event is forwarded to WebKit, which dispatches it to the
4705 // event target. Potentially a Pepper plugin will receive the event. 4710 // event target. Potentially a Pepper plugin will receive the event.
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
5550 for (size_t i = 0; i < icon_urls.size(); i++) { 5555 for (size_t i = 0; i < icon_urls.size(); i++) {
5551 WebURL url = icon_urls[i].iconURL(); 5556 WebURL url = icon_urls[i].iconURL();
5552 if (!url.isEmpty()) 5557 if (!url.isEmpty())
5553 urls.push_back(FaviconURL(url, 5558 urls.push_back(FaviconURL(url,
5554 ToFaviconType(icon_urls[i].iconType()))); 5559 ToFaviconType(icon_urls[i].iconType())));
5555 } 5560 }
5556 SendUpdateFaviconURL(urls); 5561 SendUpdateFaviconURL(urls);
5557 } 5562 }
5558 5563
5559 } // namespace content 5564 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698