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/setup_flow.h" | 5 #include "chrome/browser/remoting/setup_flow.h" |
6 | 6 |
7 #include "app/gfx/font_util.h" | 7 #include "app/gfx/font_util.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 | 149 |
150 std::string SetupFlow::GetDialogArgs() const { | 150 std::string SetupFlow::GetDialogArgs() const { |
151 return dialog_start_args_; | 151 return dialog_start_args_; |
152 } | 152 } |
153 | 153 |
154 void SetupFlow::OnCloseContents(TabContents* source, | 154 void SetupFlow::OnCloseContents(TabContents* source, |
155 bool* out_close_dialog) { | 155 bool* out_close_dialog) { |
156 } | 156 } |
157 | 157 |
158 std::wstring SetupFlow::GetDialogTitle() const { | 158 std::wstring SetupFlow::GetDialogTitle() const { |
159 return UTF16ToWideHack( | 159 return l10n_util::GetString(IDS_REMOTING_SETUP_DIALOG_TITLE); |
160 l10n_util::GetStringUTF16(IDS_REMOTING_SETUP_DIALOG_TITLE)); | |
161 } | 160 } |
162 | 161 |
163 bool SetupFlow::IsDialogModal() const { | 162 bool SetupFlow::IsDialogModal() const { |
164 return false; | 163 return false; |
165 } | 164 } |
166 | 165 |
167 bool SetupFlow::ShouldShowDialogTitle() const { | 166 bool SetupFlow::ShouldShowDialogTitle() const { |
168 return true; | 167 return true; |
169 } | 168 } |
170 | 169 |
(...skipping 15 matching lines...) Expand all Loading... |
186 void SetupFlow::StartCurrentStep() { | 185 void SetupFlow::StartCurrentStep() { |
187 current_step_->Start(this, NewCallback(this, &SetupFlow::OnStepDone)); | 186 current_step_->Start(this, NewCallback(this, &SetupFlow::OnStepDone)); |
188 } | 187 } |
189 | 188 |
190 void SetupFlow::OnStepDone() { | 189 void SetupFlow::OnStepDone() { |
191 current_step_.reset(current_step_->GetNextStep()); | 190 current_step_.reset(current_step_->GetNextStep()); |
192 StartCurrentStep(); | 191 StartCurrentStep(); |
193 } | 192 } |
194 | 193 |
195 } // namespace remoting | 194 } // namespace remoting |
OLD | NEW |