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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 } | 1977 } |
1978 | 1978 |
1979 int RenderViewImpl::historyBackListCount() { | 1979 int RenderViewImpl::historyBackListCount() { |
1980 return history_list_offset_ < 0 ? 0 : history_list_offset_; | 1980 return history_list_offset_ < 0 ? 0 : history_list_offset_; |
1981 } | 1981 } |
1982 | 1982 |
1983 int RenderViewImpl::historyForwardListCount() { | 1983 int RenderViewImpl::historyForwardListCount() { |
1984 return history_list_length_ - historyBackListCount() - 1; | 1984 return history_list_length_ - historyBackListCount() - 1; |
1985 } | 1985 } |
1986 | 1986 |
1987 void RenderViewImpl::postAccessibilityEvent( | |
1988 const WebAXObject& obj, blink::WebAXEvent event) { | |
1989 main_render_frame()->HandleWebAccessibilityEvent(obj, event); | |
1990 } | |
1991 | |
1992 // blink::WebWidgetClient ---------------------------------------------------- | 1987 // blink::WebWidgetClient ---------------------------------------------------- |
1993 | 1988 |
1994 void RenderViewImpl::didFocus() { | 1989 void RenderViewImpl::didFocus() { |
1995 // TODO(jcivelli): when https://bugs.webkit.org/show_bug.cgi?id=33389 is fixed | 1990 // TODO(jcivelli): when https://bugs.webkit.org/show_bug.cgi?id=33389 is fixed |
1996 // we won't have to test for user gesture anymore and we can | 1991 // we won't have to test for user gesture anymore and we can |
1997 // move that code back to render_widget.cc | 1992 // move that code back to render_widget.cc |
1998 if (WebUserGestureIndicator::isProcessingUserGesture() && | 1993 if (WebUserGestureIndicator::isProcessingUserGesture() && |
1999 !RenderThreadImpl::current()->layout_test_mode()) { | 1994 !RenderThreadImpl::current()->layout_test_mode()) { |
2000 Send(new ViewHostMsg_Focus(routing_id_)); | 1995 Send(new ViewHostMsg_Focus(routing_id_)); |
2001 } | 1996 } |
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4201 std::vector<gfx::Size> sizes; | 4196 std::vector<gfx::Size> sizes; |
4202 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4197 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4203 if (!url.isEmpty()) | 4198 if (!url.isEmpty()) |
4204 urls.push_back( | 4199 urls.push_back( |
4205 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4200 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4206 } | 4201 } |
4207 SendUpdateFaviconURL(urls); | 4202 SendUpdateFaviconURL(urls); |
4208 } | 4203 } |
4209 | 4204 |
4210 } // namespace content | 4205 } // namespace content |
OLD | NEW |