OLD | NEW |
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 Loading... |
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 |
OLD | NEW |