| 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 } | 1990 } |
| 1991 | 1991 |
| 1992 int RenderViewImpl::historyBackListCount() { | 1992 int RenderViewImpl::historyBackListCount() { |
| 1993 return history_list_offset_ < 0 ? 0 : history_list_offset_; | 1993 return history_list_offset_ < 0 ? 0 : history_list_offset_; |
| 1994 } | 1994 } |
| 1995 | 1995 |
| 1996 int RenderViewImpl::historyForwardListCount() { | 1996 int RenderViewImpl::historyForwardListCount() { |
| 1997 return history_list_length_ - historyBackListCount() - 1; | 1997 return history_list_length_ - historyBackListCount() - 1; |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 void RenderViewImpl::postAccessibilityEvent( |
| 2001 const WebAXObject& obj, blink::WebAXEvent event) { |
| 2002 main_render_frame()->HandleWebAccessibilityEvent(obj, event); |
| 2003 } |
| 2004 |
| 2000 // blink::WebWidgetClient ---------------------------------------------------- | 2005 // blink::WebWidgetClient ---------------------------------------------------- |
| 2001 | 2006 |
| 2002 void RenderViewImpl::didFocus() { | 2007 void RenderViewImpl::didFocus() { |
| 2003 // TODO(jcivelli): when https://bugs.webkit.org/show_bug.cgi?id=33389 is fixed | 2008 // TODO(jcivelli): when https://bugs.webkit.org/show_bug.cgi?id=33389 is fixed |
| 2004 // we won't have to test for user gesture anymore and we can | 2009 // we won't have to test for user gesture anymore and we can |
| 2005 // move that code back to render_widget.cc | 2010 // move that code back to render_widget.cc |
| 2006 if (WebUserGestureIndicator::isProcessingUserGesture() && | 2011 if (WebUserGestureIndicator::isProcessingUserGesture() && |
| 2007 !RenderThreadImpl::current()->layout_test_mode()) { | 2012 !RenderThreadImpl::current()->layout_test_mode()) { |
| 2008 Send(new ViewHostMsg_Focus(routing_id_)); | 2013 Send(new ViewHostMsg_Focus(routing_id_)); |
| 2009 } | 2014 } |
| (...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4200 std::vector<gfx::Size> sizes; | 4205 std::vector<gfx::Size> sizes; |
| 4201 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4206 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4202 if (!url.isEmpty()) | 4207 if (!url.isEmpty()) |
| 4203 urls.push_back( | 4208 urls.push_back( |
| 4204 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4209 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4205 } | 4210 } |
| 4206 SendUpdateFaviconURL(urls); | 4211 SendUpdateFaviconURL(urls); |
| 4207 } | 4212 } |
| 4208 | 4213 |
| 4209 } // namespace content | 4214 } // namespace content |
| OLD | NEW |