| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void RenderWidgetHostViewChildFrame::ImeCancelComposition() { | 165 void RenderWidgetHostViewChildFrame::ImeCancelComposition() { |
| 166 // TODO(kenrb): Fix OOPIF Ime. | 166 // TODO(kenrb): Fix OOPIF Ime. |
| 167 } | 167 } |
| 168 | 168 |
| 169 void RenderWidgetHostViewChildFrame::ImeCompositionRangeChanged( | 169 void RenderWidgetHostViewChildFrame::ImeCompositionRangeChanged( |
| 170 const gfx::Range& range, | 170 const gfx::Range& range, |
| 171 const std::vector<gfx::Rect>& character_bounds) { | 171 const std::vector<gfx::Rect>& character_bounds) { |
| 172 // TODO(kenrb): Fix OOPIF Ime. | 172 // TODO(kenrb): Fix OOPIF Ime. |
| 173 } | 173 } |
| 174 | 174 |
| 175 void RenderWidgetHostViewChildFrame::MovePluginWindows( | |
| 176 const std::vector<WebPluginGeometry>& moves) { | |
| 177 } | |
| 178 | |
| 179 void RenderWidgetHostViewChildFrame::UpdateCursor(const WebCursor& cursor) { | 175 void RenderWidgetHostViewChildFrame::UpdateCursor(const WebCursor& cursor) { |
| 180 if (frame_connector_) | 176 if (frame_connector_) |
| 181 frame_connector_->UpdateCursor(cursor); | 177 frame_connector_->UpdateCursor(cursor); |
| 182 } | 178 } |
| 183 | 179 |
| 184 void RenderWidgetHostViewChildFrame::SetIsLoading(bool is_loading) { | 180 void RenderWidgetHostViewChildFrame::SetIsLoading(bool is_loading) { |
| 185 // It is valid for an inner WebContents's SetIsLoading() to end up here. | 181 // It is valid for an inner WebContents's SetIsLoading() to end up here. |
| 186 // This is because an inner WebContents's main frame's RenderWidgetHostView | 182 // This is because an inner WebContents's main frame's RenderWidgetHostView |
| 187 // is a RenderWidgetHostViewChildFrame. In contrast, when there is no | 183 // is a RenderWidgetHostViewChildFrame. In contrast, when there is no |
| 188 // inner/outer WebContents, only subframe's RenderWidgetHostView can be a | 184 // inner/outer WebContents, only subframe's RenderWidgetHostView can be a |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 if (surface_factory_ && !surface_id_.is_null()) | 575 if (surface_factory_ && !surface_id_.is_null()) |
| 580 surface_factory_->Destroy(surface_id_); | 576 surface_factory_->Destroy(surface_id_); |
| 581 surface_id_ = cc::SurfaceId(); | 577 surface_id_ = cc::SurfaceId(); |
| 582 } | 578 } |
| 583 | 579 |
| 584 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 580 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 585 return surface_id_; | 581 return surface_id_; |
| 586 }; | 582 }; |
| 587 | 583 |
| 588 } // namespace content | 584 } // namespace content |
| OLD | NEW |