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

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

Issue 8395016: views/examples: Alphabetize examples list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the tab titles Created 9 years, 1 month 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 | « no previous file | views/examples/native_theme_checkbox_example.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 layout->StartRow(1, 0); 75 layout->StartRow(1, 0);
76 layout->AddView(tabbed_pane_); 76 layout->AddView(tabbed_pane_);
77 layout->StartRow(0 /* no expand */, 0); 77 layout->StartRow(0 /* no expand */, 0);
78 layout->AddView(status_label_); 78 layout->AddView(status_label_);
79 79
80 // TODO(satorux): The window is getting wide. Eventually, we would have 80 // TODO(satorux): The window is getting wide. Eventually, we would have
81 // the second tabbed pane. 81 // the second tabbed pane.
82 views::Widget* window = 82 views::Widget* window =
83 views::Widget::CreateWindowWithBounds(this, gfx::Rect(0, 0, 850, 300)); 83 views::Widget::CreateWindowWithBounds(this, gfx::Rect(0, 0, 850, 300));
84 84
85 // Keep these in alphabetical order!
86 examples_.push_back(new BubbleExample(this));
87 examples_.push_back(new ButtonExample(this));
88 examples_.push_back(new ComboboxExample(this));
89 examples_.push_back(new DoubleSplitViewExample(this));
90 examples_.push_back(new LinkExample(this));
91 examples_.push_back(new MenuExample(this));
92 examples_.push_back(new MessageBoxExample(this));
93 examples_.push_back(new NativeThemeButtonExample(this));
85 examples_.push_back(new NativeThemeCheckboxExample(this)); 94 examples_.push_back(new NativeThemeCheckboxExample(this));
86 examples_.push_back(new NativeThemeButtonExample(this));
87 examples_.push_back(new NativeWidgetViewsExample(this)); 95 examples_.push_back(new NativeWidgetViewsExample(this));
88 examples_.push_back(new TextfieldExample(this));
89 examples_.push_back(new ButtonExample(this));
90 examples_.push_back(new TextExample(this));
91 examples_.push_back(new BubbleExample(this));
92 examples_.push_back(new ThrobberExample(this));
93 examples_.push_back(new ComboboxExample(this));
94 examples_.push_back(new LinkExample(this));
95 examples_.push_back(new TabbedPaneExample(this));
96 examples_.push_back(new MessageBoxExample(this));
97 examples_.push_back(new RadioButtonExample(this)); 96 examples_.push_back(new RadioButtonExample(this));
98 examples_.push_back(new ScrollViewExample(this)); 97 examples_.push_back(new ScrollViewExample(this));
99 examples_.push_back(new SingleSplitViewExample(this)); 98 examples_.push_back(new SingleSplitViewExample(this));
100 examples_.push_back(new DoubleSplitViewExample(this)); 99 examples_.push_back(new TabbedPaneExample(this));
101 #if defined(OS_WIN) 100 #if defined(OS_WIN)
102 examples_.push_back(new TableExample(this)); 101 examples_.push_back(new TableExample(this));
103 #endif 102 #endif
104 examples_.push_back(new Table2Example(this)); 103 examples_.push_back(new Table2Example(this));
104 examples_.push_back(new TextExample(this));
105 examples_.push_back(new TextfieldExample(this));
106 examples_.push_back(new ThrobberExample(this));
105 examples_.push_back(new WidgetExample(this)); 107 examples_.push_back(new WidgetExample(this));
106 examples_.push_back(new MenuExample(this));
107 108
108 for (std::vector<ExampleBase*>::const_iterator i(examples_.begin()); 109 for (std::vector<ExampleBase*>::const_iterator i(examples_.begin());
109 i != examples_.end(); ++i) 110 i != examples_.end(); ++i)
110 AddExample(*i); 111 AddExample(*i);
111 112
112 window->Show(); 113 window->Show();
113 } 114 }
114 115
115 void ExamplesMain::SetStatus(const std::string& status) { 116 void ExamplesMain::SetStatus(const std::string& status) {
116 status_label_->SetText(UTF8ToUTF16(status)); 117 status_label_->SetText(UTF8ToUTF16(status));
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 main.Init(); 186 main.Init();
186 187
187 views::AcceleratorHandler accelerator_handler; 188 views::AcceleratorHandler accelerator_handler;
188 MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler); 189 MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
189 190
190 #if defined(OS_WIN) 191 #if defined(OS_WIN)
191 OleUninitialize(); 192 OleUninitialize();
192 #endif 193 #endif
193 return 0; 194 return 0;
194 } 195 }
OLDNEW
« no previous file with comments | « no previous file | views/examples/native_theme_checkbox_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698