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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 } | 2027 } |
2028 | 2028 |
2029 int RenderViewImpl::historyBackListCount() { | 2029 int RenderViewImpl::historyBackListCount() { |
2030 return history_list_offset_ < 0 ? 0 : history_list_offset_; | 2030 return history_list_offset_ < 0 ? 0 : history_list_offset_; |
2031 } | 2031 } |
2032 | 2032 |
2033 int RenderViewImpl::historyForwardListCount() { | 2033 int RenderViewImpl::historyForwardListCount() { |
2034 return history_list_length_ - historyBackListCount() - 1; | 2034 return history_list_length_ - historyBackListCount() - 1; |
2035 } | 2035 } |
2036 | 2036 |
2037 void RenderViewImpl::postAccessibilityEvent( | |
2038 const WebAXObject& obj, blink::WebAXEvent event) { | |
2039 main_render_frame()->HandleWebAccessibilityEvent(obj, event); | |
2040 } | |
2041 | |
2042 void RenderViewImpl::didUpdateInspectorSetting(const WebString& key, | 2037 void RenderViewImpl::didUpdateInspectorSetting(const WebString& key, |
2043 const WebString& value) { | 2038 const WebString& value) { |
2044 Send(new ViewHostMsg_UpdateInspectorSetting(routing_id_, | 2039 Send(new ViewHostMsg_UpdateInspectorSetting(routing_id_, |
2045 key.utf8(), | 2040 key.utf8(), |
2046 value.utf8())); | 2041 value.utf8())); |
2047 } | 2042 } |
2048 | 2043 |
2049 // blink::WebWidgetClient ---------------------------------------------------- | 2044 // blink::WebWidgetClient ---------------------------------------------------- |
2050 | 2045 |
2051 void RenderViewImpl::didFocus() { | 2046 void RenderViewImpl::didFocus() { |
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4275 std::vector<gfx::Size> sizes; | 4270 std::vector<gfx::Size> sizes; |
4276 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4271 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4277 if (!url.isEmpty()) | 4272 if (!url.isEmpty()) |
4278 urls.push_back( | 4273 urls.push_back( |
4279 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4274 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4280 } | 4275 } |
4281 SendUpdateFaviconURL(urls); | 4276 SendUpdateFaviconURL(urls); |
4282 } | 4277 } |
4283 | 4278 |
4284 } // namespace content | 4279 } // namespace content |
OLD | NEW |