| 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 3215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3226 } | 3226 } |
| 3227 } | 3227 } |
| 3228 #endif // OS_MACOSX | 3228 #endif // OS_MACOSX |
| 3229 | 3229 |
| 3230 void RenderViewImpl::Close() { | 3230 void RenderViewImpl::Close() { |
| 3231 // We need to grab a pointer to the doomed WebView before we destroy it. | 3231 // We need to grab a pointer to the doomed WebView before we destroy it. |
| 3232 WebView* doomed = webview(); | 3232 WebView* doomed = webview(); |
| 3233 RenderWidget::Close(); | 3233 RenderWidget::Close(); |
| 3234 g_view_map.Get().erase(doomed); | 3234 g_view_map.Get().erase(doomed); |
| 3235 g_routing_id_view_map.Get().erase(routing_id_); | 3235 g_routing_id_view_map.Get().erase(routing_id_); |
| 3236 RenderThread::Get()->Send(new ViewHostMsg_Close_ACK(routing_id_)); |
| 3236 } | 3237 } |
| 3237 | 3238 |
| 3238 void RenderViewImpl::DidHandleKeyEvent() { | 3239 void RenderViewImpl::DidHandleKeyEvent() { |
| 3239 ClearEditCommands(); | 3240 ClearEditCommands(); |
| 3240 } | 3241 } |
| 3241 | 3242 |
| 3242 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { | 3243 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { |
| 3243 possible_drag_event_info_.event_source = | 3244 possible_drag_event_info_.event_source = |
| 3244 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; | 3245 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; |
| 3245 possible_drag_event_info_.event_location = | 3246 possible_drag_event_info_.event_location = |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4052 std::vector<gfx::Size> sizes; | 4053 std::vector<gfx::Size> sizes; |
| 4053 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4054 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4054 if (!url.isEmpty()) | 4055 if (!url.isEmpty()) |
| 4055 urls.push_back( | 4056 urls.push_back( |
| 4056 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4057 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4057 } | 4058 } |
| 4058 SendUpdateFaviconURL(urls); | 4059 SendUpdateFaviconURL(urls); |
| 4059 } | 4060 } |
| 4060 | 4061 |
| 4061 } // namespace content | 4062 } // namespace content |
| OLD | NEW |