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 <windows.h> | 5 #include <windows.h> |
6 #include <atlbase.h> | 6 #include <atlbase.h> |
7 #include <atlapp.h> | 7 #include <atlapp.h> |
8 #include <atlcrack.h> | 8 #include <atlcrack.h> |
9 #include <atlmisc.h> | 9 #include <atlmisc.h> |
10 | 10 |
11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "gfx/canvas.h" | 13 #include "ui/gfx/canvas.h" |
14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
16 #include "ui/views/widget/native_widget_win.h" | 16 #include "ui/views/widget/native_widget_win.h" |
17 | 17 |
18 class V2DemoDispatcher : public MessageLoopForUI::Dispatcher { | 18 class V2DemoDispatcher : public MessageLoopForUI::Dispatcher { |
19 public: | 19 public: |
20 V2DemoDispatcher() {} | 20 V2DemoDispatcher() {} |
21 virtual ~V2DemoDispatcher() {} | 21 virtual ~V2DemoDispatcher() {} |
22 | 22 |
23 private: | 23 private: |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ui::Widget widget(&cv); | 168 ui::Widget widget(&cv); |
169 widget.InitWithNativeViewParent(NULL, gfx::Rect(20, 20, 400, 400)); | 169 widget.InitWithNativeViewParent(NULL, gfx::Rect(20, 20, 400, 400)); |
170 cv.Init(); | 170 cv.Init(); |
171 widget.Show(); | 171 widget.Show(); |
172 | 172 |
173 V2DemoDispatcher dispatcher; | 173 V2DemoDispatcher dispatcher; |
174 MessageLoopForUI::current()->Run(&dispatcher); | 174 MessageLoopForUI::current()->Run(&dispatcher); |
175 | 175 |
176 OleUninitialize(); | 176 OleUninitialize(); |
177 } | 177 } |
OLD | NEW |