Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/android/render_widget_host_connector.h" | 5 #include "content/browser/android/render_widget_host_connector.h" |
| 6 | 6 |
| 7 #include "content/browser/frame_host/interstitial_page_impl.h" | 7 #include "content/browser/frame_host/interstitial_page_impl.h" |
| 8 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 8 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 ->GetRenderViewHost() | 120 ->GetRenderViewHost() |
| 121 ->GetWidget() | 121 ->GetWidget() |
| 122 ->GetView(); | 122 ->GetView(); |
| 123 } | 123 } |
| 124 return static_cast<RenderWidgetHostViewAndroid*>(rwhv); | 124 return static_cast<RenderWidgetHostViewAndroid*>(rwhv); |
| 125 } | 125 } |
| 126 | 126 |
| 127 RenderWidgetHostConnector::RenderWidgetHostConnector(WebContents* web_contents) | 127 RenderWidgetHostConnector::RenderWidgetHostConnector(WebContents* web_contents) |
| 128 : render_widget_observer_(new Observer(web_contents, this)) {} | 128 : render_widget_observer_(new Observer(web_contents, this)) {} |
| 129 | 129 |
| 130 void RenderWidgetHostConnector::Initialize() { | |
| 131 render_widget_observer_->RenderViewReady(); | |
|
boliu
2017/04/21 16:20:02
what it does is correct, but the RenderViewReady c
Jinsuk Kim
2017/04/21 16:30:04
It would be like this:
auto* rwhva = GetRenderWidg
boliu
2017/04/21 16:33:39
Is that in RenderViewReady or in initialize? It sh
Jinsuk Kim
2017/04/21 16:53:16
Inititialize(). Done.
| |
| 132 } | |
| 133 | |
| 130 RenderWidgetHostConnector::~RenderWidgetHostConnector() {} | 134 RenderWidgetHostConnector::~RenderWidgetHostConnector() {} |
| 131 | 135 |
| 132 RenderWidgetHostViewAndroid* RenderWidgetHostConnector::GetRWHVAForTesting() | 136 RenderWidgetHostViewAndroid* RenderWidgetHostConnector::GetRWHVAForTesting() |
| 133 const { | 137 const { |
| 134 return render_widget_observer_->active_rwhva(); | 138 return render_widget_observer_->active_rwhva(); |
| 135 } | 139 } |
| 136 | 140 |
| 137 } // namespace content | 141 } // namespace content |
| OLD | NEW |