OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/remoting/remoting_setup_flow.h" | 5 #include "chrome/browser/remoting/remoting_setup_flow.h" |
6 | 6 |
7 #include "app/gfx/font_util.h" | 7 #include "app/gfx/font_util.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 | 166 |
167 std::wstring RemotingSetupFlow::GetDialogTitle() const { | 167 std::wstring RemotingSetupFlow::GetDialogTitle() const { |
168 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE); | 168 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE); |
169 } | 169 } |
170 | 170 |
171 bool RemotingSetupFlow::IsDialogModal() const { | 171 bool RemotingSetupFlow::IsDialogModal() const { |
172 return true; | 172 return true; |
173 } | 173 } |
174 | 174 |
| 175 bool RemotingSetupFlow::ShouldShowDialogTitle() const { |
| 176 return true; |
| 177 } |
| 178 |
175 /////////////////////////////////////////////////////////////////////////////// | 179 /////////////////////////////////////////////////////////////////////////////// |
176 // GaiaAuthConsumer implementation. | 180 // GaiaAuthConsumer implementation. |
177 void RemotingSetupFlow::OnClientLoginFailure( | 181 void RemotingSetupFlow::OnClientLoginFailure( |
178 const GoogleServiceAuthError& error) { | 182 const GoogleServiceAuthError& error) { |
179 ShowGaiaFailed(error); | 183 ShowGaiaFailed(error); |
180 authenticator_.reset(); | 184 authenticator_.reset(); |
181 } | 185 } |
182 | 186 |
183 void RemotingSetupFlow::OnClientLoginSuccess( | 187 void RemotingSetupFlow::OnClientLoginSuccess( |
184 const GaiaAuthConsumer::ClientLoginResult& credentials) { | 188 const GaiaAuthConsumer::ClientLoginResult& credentials) { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 } | 308 } |
305 | 309 |
306 void RemotingSetupFlow::ExecuteJavascriptInIFrame( | 310 void RemotingSetupFlow::ExecuteJavascriptInIFrame( |
307 const std::wstring& iframe_xpath, | 311 const std::wstring& iframe_xpath, |
308 const std::wstring& js) { | 312 const std::wstring& js) { |
309 if (dom_ui_) { | 313 if (dom_ui_) { |
310 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); | 314 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); |
311 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); | 315 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); |
312 } | 316 } |
313 } | 317 } |
OLD | NEW |