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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 void RenderWidgetHostViewChildFrame::SelectionChanged( | 216 void RenderWidgetHostViewChildFrame::SelectionChanged( |
217 const base::string16& text, | 217 const base::string16& text, |
218 size_t offset, | 218 size_t offset, |
219 const gfx::Range& range) { | 219 const gfx::Range& range) { |
220 } | 220 } |
221 | 221 |
222 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( | 222 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( |
223 const ViewHostMsg_SelectionBounds_Params& params) { | 223 const ViewHostMsg_SelectionBounds_Params& params) { |
224 } | 224 } |
225 | 225 |
226 #if defined(OS_ANDROID) | 226 #if defined(OS_ANDROID) && !defined(USE_AURA) |
227 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { | 227 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { |
228 } | 228 } |
229 | 229 |
230 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { | 230 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { |
231 } | 231 } |
232 #endif | 232 #endif |
233 | 233 |
234 void RenderWidgetHostViewChildFrame::SurfaceDrawn(uint32 output_surface_id, | 234 void RenderWidgetHostViewChildFrame::SurfaceDrawn(uint32 output_surface_id, |
235 cc::SurfaceDrawStatus drawn) { | 235 cc::SurfaceDrawStatus drawn) { |
236 cc::CompositorFrameAck ack; | 236 cc::CompositorFrameAck ack; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
455 return; | 455 return; |
456 } | 456 } |
457 | 457 |
458 std::copy(resources.begin(), resources.end(), | 458 std::copy(resources.begin(), resources.end(), |
459 std::back_inserter(surface_returned_resources_)); | 459 std::back_inserter(surface_returned_resources_)); |
460 } | 460 } |
461 | 461 |
462 BrowserAccessibilityManager* | 462 BrowserAccessibilityManager* |
463 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 463 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
464 BrowserAccessibilityDelegate* delegate) { | 464 BrowserAccessibilityDelegate* delegate) { |
465 return BrowserAccessibilityManager::Create( | 465 return nullptr; |
no sievers
2015/10/22 20:55:40
up to you, but maybe you want to pull accessibilit
mfomitchev
2015/11/02 21:51:15
Done.
| |
466 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 466 // return BrowserAccessibilityManager::Create( |
467 // BrowserAccessibilityManager::GetEmptyDocument(), delegate); | |
467 } | 468 } |
468 | 469 |
469 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 470 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
470 if (surface_factory_ && !surface_id_.is_null()) | 471 if (surface_factory_ && !surface_id_.is_null()) |
471 surface_factory_->Destroy(surface_id_); | 472 surface_factory_->Destroy(surface_id_); |
472 surface_id_ = cc::SurfaceId(); | 473 surface_id_ = cc::SurfaceId(); |
473 } | 474 } |
474 | 475 |
475 } // namespace content | 476 } // namespace content |
OLD | NEW |