| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 std::string RemotingSetupFlow::GetDialogArgs() const { | 160 std::string RemotingSetupFlow::GetDialogArgs() const { |
| 161 return dialog_start_args_; | 161 return dialog_start_args_; |
| 162 } | 162 } |
| 163 | 163 |
| 164 void RemotingSetupFlow::OnCloseContents(TabContents* source, | 164 void RemotingSetupFlow::OnCloseContents(TabContents* source, |
| 165 bool* out_close_dialog) { | 165 bool* out_close_dialog) { |
| 166 } | 166 } |
| 167 | 167 |
| 168 std::wstring RemotingSetupFlow::GetDialogTitle() const { | 168 std::wstring RemotingSetupFlow::GetDialogTitle() const { |
| 169 return UTF16ToWideHack( | 169 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE); |
| 170 l10n_util::GetStringUTF16(IDS_REMOTING_SETUP_DIALOG_TITLE)); | |
| 171 } | 170 } |
| 172 | 171 |
| 173 bool RemotingSetupFlow::IsDialogModal() const { | 172 bool RemotingSetupFlow::IsDialogModal() const { |
| 174 return true; | 173 return true; |
| 175 } | 174 } |
| 176 | 175 |
| 177 bool RemotingSetupFlow::ShouldShowDialogTitle() const { | 176 bool RemotingSetupFlow::ShouldShowDialogTitle() const { |
| 178 return true; | 177 return true; |
| 179 } | 178 } |
| 180 | 179 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 } | 309 } |
| 311 | 310 |
| 312 void RemotingSetupFlow::ExecuteJavascriptInIFrame( | 311 void RemotingSetupFlow::ExecuteJavascriptInIFrame( |
| 313 const std::wstring& iframe_xpath, | 312 const std::wstring& iframe_xpath, |
| 314 const std::wstring& js) { | 313 const std::wstring& js) { |
| 315 if (dom_ui_) { | 314 if (dom_ui_) { |
| 316 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); | 315 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); |
| 317 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); | 316 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); |
| 318 } | 317 } |
| 319 } | 318 } |
| OLD | NEW |