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_view_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 9 #include "content/browser/accessibility/browser_accessibility_manager.h" |
10 #include "content/browser/gpu/gpu_data_manager_impl.h" | 10 #include "content/browser/gpu/gpu_data_manager_impl.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 return true; | 288 return true; |
289 } | 289 } |
290 | 290 |
291 void RenderWidgetHostViewBase::DidUnregisterFromTextInputManager( | 291 void RenderWidgetHostViewBase::DidUnregisterFromTextInputManager( |
292 TextInputManager* text_input_manager) { | 292 TextInputManager* text_input_manager) { |
293 DCHECK(text_input_manager && text_input_manager_ == text_input_manager); | 293 DCHECK(text_input_manager && text_input_manager_ == text_input_manager); |
294 | 294 |
295 text_input_manager_ = nullptr; | 295 text_input_manager_ = nullptr; |
296 } | 296 } |
297 | 297 |
| 298 void RenderWidgetHostViewBase::SetPageScaleFactorForSubframes( |
| 299 float page_scale) { |
| 300 RenderWidgetHostImpl* host = |
| 301 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
| 302 |
| 303 if (host && host->delegate()) |
| 304 host->delegate()->SetPageScaleFactorForSubframes(page_scale); |
| 305 } |
| 306 |
298 base::WeakPtr<RenderWidgetHostViewBase> RenderWidgetHostViewBase::GetWeakPtr() { | 307 base::WeakPtr<RenderWidgetHostViewBase> RenderWidgetHostViewBase::GetWeakPtr() { |
299 return weak_factory_.GetWeakPtr(); | 308 return weak_factory_.GetWeakPtr(); |
300 } | 309 } |
301 | 310 |
302 std::unique_ptr<SyntheticGestureTarget> | 311 std::unique_ptr<SyntheticGestureTarget> |
303 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { | 312 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { |
304 RenderWidgetHostImpl* host = | 313 RenderWidgetHostImpl* host = |
305 RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 314 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
306 return std::unique_ptr<SyntheticGestureTarget>( | 315 return std::unique_ptr<SyntheticGestureTarget>( |
307 new SyntheticGestureTargetBase(host)); | 316 new SyntheticGestureTargetBase(host)); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 531 |
523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 532 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
524 return false; | 533 return false; |
525 } | 534 } |
526 | 535 |
527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 536 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
528 return cc::SurfaceId(); | 537 return cc::SurfaceId(); |
529 } | 538 } |
530 | 539 |
531 } // namespace content | 540 } // namespace content |
OLD | NEW |