| OLD | NEW |
| 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 3635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3646 WebView* doomed = webview(); | 3646 WebView* doomed = webview(); |
| 3647 RenderWidget::Close(); | 3647 RenderWidget::Close(); |
| 3648 g_view_map.Get().erase(doomed); | 3648 g_view_map.Get().erase(doomed); |
| 3649 g_routing_id_view_map.Get().erase(routing_id_); | 3649 g_routing_id_view_map.Get().erase(routing_id_); |
| 3650 } | 3650 } |
| 3651 | 3651 |
| 3652 void RenderViewImpl::DidHandleKeyEvent() { | 3652 void RenderViewImpl::DidHandleKeyEvent() { |
| 3653 ClearEditCommands(); | 3653 ClearEditCommands(); |
| 3654 } | 3654 } |
| 3655 | 3655 |
| 3656 void RenderViewImpl::WillProcessUserGesture() { | |
| 3657 FOR_EACH_OBSERVER( | |
| 3658 RenderViewObserver, observers_, WillProcessUserGesture()); | |
| 3659 } | |
| 3660 | |
| 3661 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { | 3656 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { |
| 3662 possible_drag_event_info_.event_source = | 3657 possible_drag_event_info_.event_source = |
| 3663 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; | 3658 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; |
| 3664 possible_drag_event_info_.event_location = | 3659 possible_drag_event_info_.event_location = |
| 3665 gfx::Point(event.globalX, event.globalY); | 3660 gfx::Point(event.globalX, event.globalY); |
| 3666 | 3661 |
| 3667 #if defined(ENABLE_PLUGINS) | 3662 #if defined(ENABLE_PLUGINS) |
| 3668 // This method is called for every mouse event that the render view receives. | 3663 // This method is called for every mouse event that the render view receives. |
| 3669 // And then the mouse event is forwarded to WebKit, which dispatches it to the | 3664 // And then the mouse event is forwarded to WebKit, which dispatches it to the |
| 3670 // event target. Potentially a Pepper plugin will receive the event. | 3665 // event target. Potentially a Pepper plugin will receive the event. |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4518 std::vector<gfx::Size> sizes; | 4513 std::vector<gfx::Size> sizes; |
| 4519 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4514 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4520 if (!url.isEmpty()) | 4515 if (!url.isEmpty()) |
| 4521 urls.push_back( | 4516 urls.push_back( |
| 4522 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4517 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4523 } | 4518 } |
| 4524 SendUpdateFaviconURL(urls); | 4519 SendUpdateFaviconURL(urls); |
| 4525 } | 4520 } |
| 4526 | 4521 |
| 4527 } // namespace content | 4522 } // namespace content |
| OLD | NEW |