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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 NOTREACHED(); | 2261 NOTREACHED(); |
2262 } | 2262 } |
2263 | 2263 |
2264 Send(new ViewHostMsg_AddMessageToConsole(routing_id_, | 2264 Send(new ViewHostMsg_AddMessageToConsole(routing_id_, |
2265 static_cast<int32>(log_severity), | 2265 static_cast<int32>(log_severity), |
2266 message.text, | 2266 message.text, |
2267 static_cast<int32>(source_line), | 2267 static_cast<int32>(source_line), |
2268 source_name)); | 2268 source_name)); |
2269 } | 2269 } |
2270 | 2270 |
| 2271 bool RenderViewImpl::shouldReportDetailedMessage(const WebString& source) { |
| 2272 return GetContentClient()->renderer()->ShouldReportDetailedMessage( |
| 2273 GURL(source.utf8().data())); |
| 2274 } |
| 2275 |
| 2276 void RenderViewImpl::reportDetailedMessage(const WebString& source, |
| 2277 WebConsoleMessage::Level level, |
| 2278 const WebString& message, |
| 2279 const WebString& jsonStackTrace) { |
| 2280 LOG(WARNING) << "RenderViewImpl::reportDetailedErrorMessage()" |
| 2281 << "\n Source: " << base::string16(source) |
| 2282 << "\n Message: " << base::string16(message) |
| 2283 << "\n Stack: " << base::string16(jsonStackTrace); |
| 2284 } |
| 2285 |
2271 void RenderViewImpl::printPage(WebFrame* frame) { | 2286 void RenderViewImpl::printPage(WebFrame* frame) { |
2272 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 2287 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
2273 PrintPage(frame, handling_input_event_)); | 2288 PrintPage(frame, handling_input_event_)); |
2274 } | 2289 } |
2275 | 2290 |
2276 WebKit::WebNotificationPresenter* RenderViewImpl::notificationPresenter() { | 2291 WebKit::WebNotificationPresenter* RenderViewImpl::notificationPresenter() { |
2277 return notification_provider_; | 2292 return notification_provider_; |
2278 } | 2293 } |
2279 | 2294 |
2280 bool RenderViewImpl::enumerateChosenDirectory( | 2295 bool RenderViewImpl::enumerateChosenDirectory( |
(...skipping 4540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6821 WebURL url = icon_urls[i].iconURL(); | 6836 WebURL url = icon_urls[i].iconURL(); |
6822 if (!url.isEmpty()) | 6837 if (!url.isEmpty()) |
6823 urls.push_back(FaviconURL(url, | 6838 urls.push_back(FaviconURL(url, |
6824 ToFaviconType(icon_urls[i].iconType()))); | 6839 ToFaviconType(icon_urls[i].iconType()))); |
6825 } | 6840 } |
6826 SendUpdateFaviconURL(urls); | 6841 SendUpdateFaviconURL(urls); |
6827 } | 6842 } |
6828 | 6843 |
6829 | 6844 |
6830 } // namespace content | 6845 } // namespace content |
OLD | NEW |