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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 guest_->GetEmbedderRenderWidgetHostView())-> | 295 guest_->GetEmbedderRenderWidgetHostView())-> |
296 TextInputTypeChanged(type, input_mode, can_compose_inline); | 296 TextInputTypeChanged(type, input_mode, can_compose_inline); |
297 } | 297 } |
298 | 298 |
299 void RenderWidgetHostViewGuest::ImeCancelComposition() { | 299 void RenderWidgetHostViewGuest::ImeCancelComposition() { |
300 platform_view_->ImeCancelComposition(); | 300 platform_view_->ImeCancelComposition(); |
301 } | 301 } |
302 | 302 |
303 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) | 303 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
304 void RenderWidgetHostViewGuest::ImeCompositionRangeChanged( | 304 void RenderWidgetHostViewGuest::ImeCompositionRangeChanged( |
305 const ui::Range& range, | 305 const gfx::Range& range, |
306 const std::vector<gfx::Rect>& character_bounds) { | 306 const std::vector<gfx::Rect>& character_bounds) { |
307 } | 307 } |
308 #endif | 308 #endif |
309 | 309 |
310 void RenderWidgetHostViewGuest::DidUpdateBackingStore( | 310 void RenderWidgetHostViewGuest::DidUpdateBackingStore( |
311 const gfx::Rect& scroll_rect, | 311 const gfx::Rect& scroll_rect, |
312 const gfx::Vector2d& scroll_delta, | 312 const gfx::Vector2d& scroll_delta, |
313 const std::vector<gfx::Rect>& copy_rects, | 313 const std::vector<gfx::Rect>& copy_rects, |
314 const ui::LatencyInfo& latency_info) { | 314 const ui::LatencyInfo& latency_info) { |
315 NOTREACHED(); | 315 NOTREACHED(); |
316 } | 316 } |
317 | 317 |
318 void RenderWidgetHostViewGuest::SelectionChanged(const string16& text, | 318 void RenderWidgetHostViewGuest::SelectionChanged(const string16& text, |
319 size_t offset, | 319 size_t offset, |
320 const ui::Range& range) { | 320 const gfx::Range& range) { |
321 platform_view_->SelectionChanged(text, offset, range); | 321 platform_view_->SelectionChanged(text, offset, range); |
322 } | 322 } |
323 | 323 |
324 void RenderWidgetHostViewGuest::SelectionBoundsChanged( | 324 void RenderWidgetHostViewGuest::SelectionBoundsChanged( |
325 const ViewHostMsg_SelectionBounds_Params& params) { | 325 const ViewHostMsg_SelectionBounds_Params& params) { |
326 platform_view_->SelectionBoundsChanged(params); | 326 platform_view_->SelectionBoundsChanged(params); |
327 } | 327 } |
328 | 328 |
329 void RenderWidgetHostViewGuest::ScrollOffsetChanged() { | 329 void RenderWidgetHostViewGuest::ScrollOffsetChanged() { |
330 } | 330 } |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 return; | 568 return; |
569 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 569 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
570 g_it != gestures->end(); | 570 g_it != gestures->end(); |
571 ++g_it) { | 571 ++g_it) { |
572 ForwardGestureEventToRenderer(*g_it); | 572 ForwardGestureEventToRenderer(*g_it); |
573 } | 573 } |
574 } | 574 } |
575 | 575 |
576 | 576 |
577 } // namespace content | 577 } // namespace content |
OLD | NEW |