| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "views/examples/example_base.h" | 5 #include "views/examples/example_base.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ExampleBase::ExampleBase(ExamplesMain* main) | 71 ExampleBase::ExampleBase(ExamplesMain* main) |
| 72 : main_(main) { | 72 : main_(main) { |
| 73 container_ = new ContainerView(this); | 73 container_ = new ContainerView(this); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // Prints a message in the status area, at the bottom of the window. | 76 // Prints a message in the status area, at the bottom of the window. |
| 77 void ExampleBase::PrintStatus(const wchar_t* format, ...) { | 77 void ExampleBase::PrintStatus(const wchar_t* format, ...) { |
| 78 va_list ap; | 78 va_list ap; |
| 79 va_start(ap, format); | 79 va_start(ap, format); |
| 80 std::wstring msg; | 80 std::wstring msg; |
| 81 StringAppendV(&msg, format, ap); | 81 base::StringAppendV(&msg, format, ap); |
| 82 main_->SetStatus(msg); | 82 main_->SetStatus(msg); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace examples | 85 } // namespace examples |
| OLD | NEW |