| 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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 // environments where RenderView isn't hosting them), so we always have to | 1161 // environments where RenderView isn't hosting them), so we always have to |
| 1162 // set the initial state. See webplugin_delegate_impl.h for details. | 1162 // set the initial state. See webplugin_delegate_impl.h for details. |
| 1163 delegate->SetContentAreaFocus(has_focus()); | 1163 delegate->SetContentAreaFocus(has_focus()); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void RenderViewImpl::UnregisterPluginDelegate( | 1166 void RenderViewImpl::UnregisterPluginDelegate( |
| 1167 WebPluginDelegateProxy* delegate) { | 1167 WebPluginDelegateProxy* delegate) { |
| 1168 plugin_delegates_.erase(delegate); | 1168 plugin_delegates_.erase(delegate); |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 bool RenderViewImpl::GetPluginInfo(const GURL& url, | |
| 1172 const GURL& page_url, | |
| 1173 const std::string& mime_type, | |
| 1174 WebPluginInfo* plugin_info, | |
| 1175 std::string* actual_mime_type) { | |
| 1176 bool found = false; | |
| 1177 Send(new ViewHostMsg_GetPluginInfo( | |
| 1178 routing_id_, url, page_url, mime_type, &found, plugin_info, | |
| 1179 actual_mime_type)); | |
| 1180 return found; | |
| 1181 } | |
| 1182 | |
| 1183 #if defined(OS_WIN) | 1171 #if defined(OS_WIN) |
| 1184 void RenderViewImpl::PluginFocusChanged(bool focused, int plugin_id) { | 1172 void RenderViewImpl::PluginFocusChanged(bool focused, int plugin_id) { |
| 1185 if (focused) | 1173 if (focused) |
| 1186 focused_plugin_id_ = plugin_id; | 1174 focused_plugin_id_ = plugin_id; |
| 1187 else | 1175 else |
| 1188 focused_plugin_id_ = -1; | 1176 focused_plugin_id_ = -1; |
| 1189 } | 1177 } |
| 1190 #endif | 1178 #endif |
| 1191 | 1179 |
| 1192 #if defined(OS_MACOSX) | 1180 #if defined(OS_MACOSX) |
| (...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6427 for (size_t i = 0; i < icon_urls.size(); i++) { | 6415 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 6428 WebURL url = icon_urls[i].iconURL(); | 6416 WebURL url = icon_urls[i].iconURL(); |
| 6429 if (!url.isEmpty()) | 6417 if (!url.isEmpty()) |
| 6430 urls.push_back(FaviconURL(url, | 6418 urls.push_back(FaviconURL(url, |
| 6431 ToFaviconType(icon_urls[i].iconType()))); | 6419 ToFaviconType(icon_urls[i].iconType()))); |
| 6432 } | 6420 } |
| 6433 SendUpdateFaviconURL(urls); | 6421 SendUpdateFaviconURL(urls); |
| 6434 } | 6422 } |
| 6435 | 6423 |
| 6436 } // namespace content | 6424 } // namespace content |
| OLD | NEW |