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/bind.h" | 10 #include "base/bind.h" |
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1973 return new CompositorOutputSurface(routing_id(), context, NULL); | 1973 return new CompositorOutputSurface(routing_id(), context, NULL); |
1974 } | 1974 } |
1975 } | 1975 } |
1976 | 1976 |
1977 void RenderViewImpl::didAddMessageToConsole( | 1977 void RenderViewImpl::didAddMessageToConsole( |
1978 const WebConsoleMessage& message, const WebString& source_name, | 1978 const WebConsoleMessage& message, const WebString& source_name, |
1979 unsigned source_line) { | 1979 unsigned source_line) { |
1980 logging::LogSeverity log_severity = logging::LOG_VERBOSE; | 1980 logging::LogSeverity log_severity = logging::LOG_VERBOSE; |
1981 switch (message.level) { | 1981 switch (message.level) { |
1982 case WebConsoleMessage::LevelTip: | 1982 case WebConsoleMessage::LevelTip: |
| 1983 case WebConsoleMessage::LevelDebug: |
1983 log_severity = logging::LOG_VERBOSE; | 1984 log_severity = logging::LOG_VERBOSE; |
1984 break; | 1985 break; |
1985 case WebConsoleMessage::LevelLog: | 1986 case WebConsoleMessage::LevelLog: |
1986 log_severity = logging::LOG_INFO; | 1987 log_severity = logging::LOG_INFO; |
1987 break; | 1988 break; |
1988 case WebConsoleMessage::LevelWarning: | 1989 case WebConsoleMessage::LevelWarning: |
1989 log_severity = logging::LOG_WARNING; | 1990 log_severity = logging::LOG_WARNING; |
1990 break; | 1991 break; |
1991 case WebConsoleMessage::LevelError: | 1992 case WebConsoleMessage::LevelError: |
1992 log_severity = logging::LOG_ERROR; | 1993 log_severity = logging::LOG_ERROR; |
(...skipping 4592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6585 } | 6586 } |
6586 #endif | 6587 #endif |
6587 | 6588 |
6588 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6589 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6589 TransportDIB::Handle dib_handle) { | 6590 TransportDIB::Handle dib_handle) { |
6590 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6591 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6591 RenderProcess::current()->ReleaseTransportDIB(dib); | 6592 RenderProcess::current()->ReleaseTransportDIB(dib); |
6592 } | 6593 } |
6593 | 6594 |
6594 } // namespace content | 6595 } // namespace content |
OLD | NEW |