Chromium Code Reviews| 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 "content/browser/renderer_host/render_widget_host_view_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 9 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 10 #include "content/browser/gpu/gpu_data_manager_impl.h" | 10 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 393 const gfx::Point& point) { | 393 const gfx::Point& point) { |
| 394 return point; | 394 return point; |
| 395 } | 395 } |
| 396 | 396 |
| 397 gfx::PointF RenderWidgetHostViewBase::TransformPointToRootCoordSpaceF( | 397 gfx::PointF RenderWidgetHostViewBase::TransformPointToRootCoordSpaceF( |
| 398 const gfx::PointF& point) { | 398 const gfx::PointF& point) { |
| 399 return gfx::PointF(TransformPointToRootCoordSpace( | 399 return gfx::PointF(TransformPointToRootCoordSpace( |
| 400 gfx::ToRoundedPoint(point))); | 400 gfx::ToRoundedPoint(point))); |
| 401 } | 401 } |
| 402 | 402 |
| 403 void RenderWidgetHostViewBase::TransformPointToLocalCoordSpace( | 403 gfx::Point RenderWidgetHostViewBase::TransformPointToLocalCoordSpace( |
| 404 const gfx::Point& point, | 404 const gfx::Point& point, |
| 405 const cc::SurfaceId& original_surface, | 405 const cc::SurfaceId& original_surface) { |
| 406 gfx::Point* transformed_point) { | 406 return point; |
| 407 *transformed_point = point; | 407 } |
| 408 | |
| 409 gfx::Point RenderWidgetHostViewBase::TransformPointToCoordSpaceForView( | |
| 410 const gfx::Point& point, | |
| 411 RenderWidgetHostViewBase* target_view) { | |
|
nasko
2016/07/27 22:52:13
target_view here should be |this|, right? Maybe ad
kenrb
2016/07/28 16:24:38
Not generally, this is really just a stub implemen
| |
| 412 return point; | |
| 408 } | 413 } |
| 409 | 414 |
| 410 void RenderWidgetHostViewBase::TextInputStateChanged( | 415 void RenderWidgetHostViewBase::TextInputStateChanged( |
| 411 const TextInputState& text_input_state) { | 416 const TextInputState& text_input_state) { |
| 412 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. | 417 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. |
| 413 #if defined(USE_AURA) | 418 #if defined(USE_AURA) |
| 414 if (GetTextInputManager()) | 419 if (GetTextInputManager()) |
| 415 GetTextInputManager()->UpdateTextInputState(this, text_input_state); | 420 GetTextInputManager()->UpdateTextInputState(this, text_input_state); |
| 416 #endif | 421 #endif |
| 417 } | 422 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 466 | 471 |
| 467 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 472 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 468 return false; | 473 return false; |
| 469 } | 474 } |
| 470 | 475 |
| 471 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 476 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 472 return cc::SurfaceId(); | 477 return cc::SurfaceId(); |
| 473 } | 478 } |
| 474 | 479 |
| 475 } // namespace content | 480 } // namespace content |
| OLD | NEW |