OLD | NEW |
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 "aura/desktop.h" | 5 #include "aura/desktop.h" |
6 #include "aura/desktop_host.h" | 6 #include "aura/desktop_host.h" |
7 #include "aura/window.h" | 7 #include "aura/window.h" |
8 #include "aura/window_delegate.h" | 8 #include "aura/window_delegate.h" |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL); | 97 views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL); |
98 params.bounds = gfx::Rect(75, 75, 80, 80); | 98 params.bounds = gfx::Rect(75, 75, 80, 80); |
99 params.parent = &window2; | 99 params.parent = &window2; |
100 widget.Init(params); | 100 widget.Init(params); |
101 widget.SetContentsView(new TestView); | 101 widget.SetContentsView(new TestView); |
102 | 102 |
103 aura::Desktop::GetInstance()->Run(); | 103 aura::Desktop::GetInstance()->Run(); |
104 return 0; | 104 return 0; |
105 } | 105 } |
106 | 106 |
OLD | NEW |