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

Side by Side Diff: ui/views/examples/examples_window.cc

Issue 291503006: views: Remove standard frame when running views_examples_with_content_exe on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/examples/examples_window.h" 5 #include "ui/views/examples/examples_window.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (ExamplesWindowContents::instance()) { 214 if (ExamplesWindowContents::instance()) {
215 ExamplesWindowContents::instance()->GetWidget()->Activate(); 215 ExamplesWindowContents::instance()->GetWidget()->Activate();
216 } else { 216 } else {
217 ScopedExamples examples(GetExamplesToShow(extra_examples.Pass())); 217 ScopedExamples examples(GetExamplesToShow(extra_examples.Pass()));
218 Widget* widget = new Widget; 218 Widget* widget = new Widget;
219 Widget::InitParams params; 219 Widget::InitParams params;
220 params.delegate = new ExamplesWindowContents(operation, examples.Pass()); 220 params.delegate = new ExamplesWindowContents(operation, examples.Pass());
221 params.context = window_context; 221 params.context = window_context;
222 params.bounds = gfx::Rect(0, 0, 850, 300); 222 params.bounds = gfx::Rect(0, 0, 850, 300);
223 params.top_level = true; 223 params.top_level = true;
224 params.remove_standard_frame = true;
224 widget->Init(params); 225 widget->Init(params);
225 widget->Show(); 226 widget->Show();
226 } 227 }
227 } 228 }
228 229
229 void LogStatus(const std::string& string) { 230 void LogStatus(const std::string& string) {
230 ExamplesWindowContents::instance()->SetStatus(string); 231 ExamplesWindowContents::instance()->SetStatus(string);
231 } 232 }
232 233
233 } // namespace examples 234 } // namespace examples
234 } // namespace views 235 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698