| 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 "cc/surfaces/surface.h" | 7 #include "cc/surfaces/surface.h" |
| 8 #include "cc/surfaces/surface_factory.h" | 8 #include "cc/surfaces/surface_factory.h" |
| 9 #include "cc/surfaces/surface_manager.h" | 9 #include "cc/surfaces/surface_manager.h" |
| 10 #include "cc/surfaces/surface_sequence.h" | 10 #include "cc/surfaces/surface_sequence.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 void RenderWidgetHostViewChildFrame::SelectionChanged( | 199 void RenderWidgetHostViewChildFrame::SelectionChanged( |
| 200 const base::string16& text, | 200 const base::string16& text, |
| 201 size_t offset, | 201 size_t offset, |
| 202 const gfx::Range& range) { | 202 const gfx::Range& range) { |
| 203 } | 203 } |
| 204 | 204 |
| 205 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( | 205 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( |
| 206 const ViewHostMsg_SelectionBounds_Params& params) { | 206 const ViewHostMsg_SelectionBounds_Params& params) { |
| 207 } | 207 } |
| 208 | 208 |
| 209 #if defined(OS_ANDROID) | 209 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 210 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { | 210 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { |
| 211 } | 211 } |
| 212 | 212 |
| 213 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { | 213 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { |
| 214 } | 214 } |
| 215 #endif | 215 #endif |
| 216 | 216 |
| 217 void RenderWidgetHostViewChildFrame::SurfaceDrawn(uint32 output_surface_id, | 217 void RenderWidgetHostViewChildFrame::SurfaceDrawn(uint32 output_surface_id, |
| 218 cc::SurfaceDrawStatus drawn) { | 218 cc::SurfaceDrawStatus drawn) { |
| 219 cc::CompositorFrameAck ack; | 219 cc::CompositorFrameAck ack; |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 return; | 416 return; |
| 417 } | 417 } |
| 418 | 418 |
| 419 std::copy(resources.begin(), resources.end(), | 419 std::copy(resources.begin(), resources.end(), |
| 420 std::back_inserter(surface_returned_resources_)); | 420 std::back_inserter(surface_returned_resources_)); |
| 421 } | 421 } |
| 422 | 422 |
| 423 BrowserAccessibilityManager* | 423 BrowserAccessibilityManager* |
| 424 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 424 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
| 425 BrowserAccessibilityDelegate* delegate) { | 425 BrowserAccessibilityDelegate* delegate) { |
| 426 return BrowserAccessibilityManager::Create( | 426 return nullptr; |
| 427 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 427 // return BrowserAccessibilityManager::Create( |
| 428 // BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 428 } | 429 } |
| 429 | 430 |
| 430 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 431 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
| 431 if (surface_factory_ && !surface_id_.is_null()) | 432 if (surface_factory_ && !surface_id_.is_null()) |
| 432 surface_factory_->Destroy(surface_id_); | 433 surface_factory_->Destroy(surface_id_); |
| 433 surface_id_ = cc::SurfaceId(); | 434 surface_id_ = cc::SurfaceId(); |
| 434 } | 435 } |
| 435 | 436 |
| 436 } // namespace content | 437 } // namespace content |
| OLD | NEW |