| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 DestroyGuestView(); | 162 DestroyGuestView(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void RenderWidgetHostViewGuest::Destroy() { | 165 void RenderWidgetHostViewGuest::Destroy() { |
| 166 // The RenderWidgetHost's destruction led here, so don't call it. | 166 // The RenderWidgetHost's destruction led here, so don't call it. |
| 167 DestroyGuestView(); | 167 DestroyGuestView(); |
| 168 | 168 |
| 169 platform_view_->Destroy(); | 169 platform_view_->Destroy(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void RenderWidgetHostViewGuest::SetTooltipText(const string16& tooltip_text) { | 172 void RenderWidgetHostViewGuest::SetTooltipText( |
| 173 const base::string16& tooltip_text) { |
| 173 platform_view_->SetTooltipText(tooltip_text); | 174 platform_view_->SetTooltipText(tooltip_text); |
| 174 } | 175 } |
| 175 | 176 |
| 176 void RenderWidgetHostViewGuest::AcceleratedSurfaceInitialized(int host_id, | 177 void RenderWidgetHostViewGuest::AcceleratedSurfaceInitialized(int host_id, |
| 177 int route_id) { | 178 int route_id) { |
| 178 } | 179 } |
| 179 | 180 |
| 180 void RenderWidgetHostViewGuest::AcceleratedSurfaceBuffersSwapped( | 181 void RenderWidgetHostViewGuest::AcceleratedSurfaceBuffersSwapped( |
| 181 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 182 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 182 int gpu_host_id) { | 183 int gpu_host_id) { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 #endif | 318 #endif |
| 318 | 319 |
| 319 void RenderWidgetHostViewGuest::DidUpdateBackingStore( | 320 void RenderWidgetHostViewGuest::DidUpdateBackingStore( |
| 320 const gfx::Rect& scroll_rect, | 321 const gfx::Rect& scroll_rect, |
| 321 const gfx::Vector2d& scroll_delta, | 322 const gfx::Vector2d& scroll_delta, |
| 322 const std::vector<gfx::Rect>& copy_rects, | 323 const std::vector<gfx::Rect>& copy_rects, |
| 323 const ui::LatencyInfo& latency_info) { | 324 const ui::LatencyInfo& latency_info) { |
| 324 NOTREACHED(); | 325 NOTREACHED(); |
| 325 } | 326 } |
| 326 | 327 |
| 327 void RenderWidgetHostViewGuest::SelectionChanged(const string16& text, | 328 void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text, |
| 328 size_t offset, | 329 size_t offset, |
| 329 const gfx::Range& range) { | 330 const gfx::Range& range) { |
| 330 platform_view_->SelectionChanged(text, offset, range); | 331 platform_view_->SelectionChanged(text, offset, range); |
| 331 } | 332 } |
| 332 | 333 |
| 333 void RenderWidgetHostViewGuest::SelectionBoundsChanged( | 334 void RenderWidgetHostViewGuest::SelectionBoundsChanged( |
| 334 const ViewHostMsg_SelectionBounds_Params& params) { | 335 const ViewHostMsg_SelectionBounds_Params& params) { |
| 335 platform_view_->SelectionBoundsChanged(params); | 336 platform_view_->SelectionBoundsChanged(params); |
| 336 } | 337 } |
| 337 | 338 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 return; | 589 return; |
| 589 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 590 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
| 590 g_it != gestures->end(); | 591 g_it != gestures->end(); |
| 591 ++g_it) { | 592 ++g_it) { |
| 592 ForwardGestureEventToRenderer(*g_it); | 593 ForwardGestureEventToRenderer(*g_it); |
| 593 } | 594 } |
| 594 } | 595 } |
| 595 | 596 |
| 596 | 597 |
| 597 } // namespace content | 598 } // namespace content |
| OLD | NEW |