| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" | 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 return BrowserAccessibilityManager::Create( | 564 return BrowserAccessibilityManager::Create( |
| 565 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 565 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 566 } | 566 } |
| 567 | 567 |
| 568 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 568 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
| 569 if (surface_factory_ && !surface_id_.is_null()) | 569 if (surface_factory_ && !surface_id_.is_null()) |
| 570 surface_factory_->Destroy(surface_id_); | 570 surface_factory_->Destroy(surface_id_); |
| 571 surface_id_ = cc::SurfaceId(); | 571 surface_id_ = cc::SurfaceId(); |
| 572 } | 572 } |
| 573 | 573 |
| 574 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 575 return true; |
| 576 } |
| 577 |
| 574 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 578 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 575 return surface_id_; | 579 return surface_id_; |
| 576 }; | 580 }; |
| 577 | 581 |
| 578 } // namespace content | 582 } // namespace content |
| OLD | NEW |