| 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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2150 RenderWidgetHostImpl::GetRootBrowserAccessibilityManager() { | 2150 RenderWidgetHostImpl::GetRootBrowserAccessibilityManager() { |
| 2151 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; | 2151 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; |
| 2152 } | 2152 } |
| 2153 | 2153 |
| 2154 BrowserAccessibilityManager* | 2154 BrowserAccessibilityManager* |
| 2155 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2155 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2156 return delegate_ ? | 2156 return delegate_ ? |
| 2157 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; | 2157 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 base::TimeDelta RenderWidgetHostImpl::GetEstimatedBrowserCompositeTime() const { |
| 2161 return latency_tracker_.GetEstimatedBrowserCompositeTime(); |
| 2162 } |
| 2163 |
| 2160 #if defined(OS_WIN) | 2164 #if defined(OS_WIN) |
| 2161 gfx::NativeViewAccessible | 2165 gfx::NativeViewAccessible |
| 2162 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2166 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2163 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2167 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2164 } | 2168 } |
| 2165 #endif | 2169 #endif |
| 2166 | 2170 |
| 2167 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2171 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2168 if (view_) | 2172 if (view_) |
| 2169 return view_->PreferredReadbackFormat(); | 2173 return view_->PreferredReadbackFormat(); |
| 2170 return kN32_SkColorType; | 2174 return kN32_SkColorType; |
| 2171 } | 2175 } |
| 2172 | 2176 |
| 2173 } // namespace content | 2177 } // namespace content |
| OLD | NEW |