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