Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: views/examples/examples_main.cc

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/message_box_view.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/examples_main.h" 5 #include "views/examples/examples_main.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/i18n/icu_util.h" 9 #include "base/i18n/icu_util.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 examples_.push_back(new ScrollViewExample(this)); 96 examples_.push_back(new ScrollViewExample(this));
97 examples_.push_back(new SingleSplitViewExample(this)); 97 examples_.push_back(new SingleSplitViewExample(this));
98 examples_.push_back(new DoubleSplitViewExample(this)); 98 examples_.push_back(new DoubleSplitViewExample(this));
99 #if defined(OS_WIN) 99 #if defined(OS_WIN)
100 examples_.push_back(new TableExample(this)); 100 examples_.push_back(new TableExample(this));
101 #endif 101 #endif
102 examples_.push_back(new Table2Example(this)); 102 examples_.push_back(new Table2Example(this));
103 examples_.push_back(new WidgetExample(this)); 103 examples_.push_back(new WidgetExample(this));
104 examples_.push_back(new MenuExample(this)); 104 examples_.push_back(new MenuExample(this));
105 105
106 for (std::vector<ExampleBase*>::const_iterator i(examples_.begin()); 106 for(std::vector<ExampleBase*>::const_iterator i(examples_.begin());
107 i != examples_.end(); ++i) 107 i != examples_.end(); ++i)
108 AddExample(*i); 108 AddExample(*i);
109 109
110 window->Show(); 110 window->Show();
111 } 111 }
112 112
113 void ExamplesMain::SetStatus(const std::string& status) { 113 void ExamplesMain::SetStatus(const std::string& status) {
114 status_label_->SetText(UTF8ToUTF16(status)); 114 status_label_->SetText(UTF8ToWide(status));
115 } 115 }
116 116
117 void ExamplesMain::AddExample(ExampleBase* example) { 117 void ExamplesMain::AddExample(ExampleBase* example) {
118 tabbed_pane_->AddTab(UTF8ToUTF16(example->example_title()), 118 tabbed_pane_->AddTab(UTF8ToUTF16(example->example_title()),
119 example->example_view()); 119 example->example_view());
120 } 120 }
121 121
122 bool ExamplesMain::CanResize() const { 122 bool ExamplesMain::CanResize() const {
123 return true; 123 return true;
124 } 124 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 main.Init(); 183 main.Init();
184 184
185 views::AcceleratorHandler accelerator_handler; 185 views::AcceleratorHandler accelerator_handler;
186 MessageLoopForUI::current()->Run(&accelerator_handler); 186 MessageLoopForUI::current()->Run(&accelerator_handler);
187 187
188 #if defined(OS_WIN) 188 #if defined(OS_WIN)
189 OleUninitialize(); 189 OleUninitialize();
190 #endif 190 #endif
191 return 0; 191 return 0;
192 } 192 }
OLDNEW
« no previous file with comments | « views/controls/message_box_view.cc ('k') | views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698