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 "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/frame_host/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 std::vector<gfx::Rect> guest_character_bounds; | 335 std::vector<gfx::Rect> guest_character_bounds; |
336 for (size_t i = 0; i < character_bounds.size(); ++i) { | 336 for (size_t i = 0; i < character_bounds.size(); ++i) { |
337 gfx::Rect guest_rect = guest_->ToGuestRect(character_bounds[i]); | 337 gfx::Rect guest_rect = guest_->ToGuestRect(character_bounds[i]); |
338 guest_character_bounds.push_back(guest_rect); | 338 guest_character_bounds.push_back(guest_rect); |
339 } | 339 } |
340 // Forward the information to embedding RWHV. | 340 // Forward the information to embedding RWHV. |
341 rwhv->ImeCompositionRangeChanged(range, guest_character_bounds); | 341 rwhv->ImeCompositionRangeChanged(range, guest_character_bounds); |
342 } | 342 } |
343 #endif | 343 #endif |
344 | 344 |
345 void RenderWidgetHostViewGuest::DidUpdateBackingStore( | |
346 const gfx::Rect& scroll_rect, | |
347 const gfx::Vector2d& scroll_delta, | |
348 const std::vector<gfx::Rect>& copy_rects, | |
349 const std::vector<ui::LatencyInfo>& latency_info) { | |
350 NOTREACHED(); | |
351 } | |
352 | |
353 void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text, | 345 void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text, |
354 size_t offset, | 346 size_t offset, |
355 const gfx::Range& range) { | 347 const gfx::Range& range) { |
356 platform_view_->SelectionChanged(text, offset, range); | 348 platform_view_->SelectionChanged(text, offset, range); |
357 } | 349 } |
358 | 350 |
359 void RenderWidgetHostViewGuest::SelectionBoundsChanged( | 351 void RenderWidgetHostViewGuest::SelectionBoundsChanged( |
360 const ViewHostMsg_SelectionBounds_Params& params) { | 352 const ViewHostMsg_SelectionBounds_Params& params) { |
361 if (!guest_) | 353 if (!guest_) |
362 return; | 354 return; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 ++g_it) { | 577 ++g_it) { |
586 ForwardGestureEventToRenderer(*g_it); | 578 ForwardGestureEventToRenderer(*g_it); |
587 } | 579 } |
588 } | 580 } |
589 | 581 |
590 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() { | 582 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() { |
591 return SkBitmap::kARGB_8888_Config; | 583 return SkBitmap::kARGB_8888_Config; |
592 } | 584 } |
593 | 585 |
594 } // namespace content | 586 } // namespace content |
OLD | NEW |