OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 <CommCtrl.h> | 6 #include <CommCtrl.h> |
7 #include <commdlg.h> | 7 #include <commdlg.h> |
8 #include <time.h> | 8 #include <time.h> |
9 #include <windowsx.h> | 9 #include <windowsx.h> |
10 #include <atlbase.h> | 10 #include <atlbase.h> |
11 #include <atlsecurity.h> | 11 #include <atlsecurity.h> |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <sstream> | 13 #include <sstream> |
14 | 14 |
15 #include "sandbox/sandbox_poc/main_ui_window.h" | 15 #include "sandbox/win/sandbox_poc/main_ui_window.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "sandbox/sandbox_poc/resource.h" | 17 #include "sandbox/win/sandbox_poc/resource.h" |
18 #include "sandbox/src/acl.h" | 18 #include "sandbox/win/src/acl.h" |
19 #include "sandbox/src/sandbox.h" | 19 #include "sandbox/win/src/sandbox.h" |
20 #include "sandbox/src/win_utils.h" | 20 #include "sandbox/win/src/win_utils.h" |
21 | 21 |
22 HWND MainUIWindow::list_view_ = NULL; | 22 HWND MainUIWindow::list_view_ = NULL; |
23 | 23 |
24 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll"; | 24 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll"; |
25 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run"; | 25 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run"; |
26 const wchar_t MainUIWindow::kDefaultLogFile_[] = L""; | 26 const wchar_t MainUIWindow::kDefaultLogFile_[] = L""; |
27 | 27 |
28 MainUIWindow::MainUIWindow() | 28 MainUIWindow::MainUIWindow() |
29 : instance_handle_(NULL), | 29 : instance_handle_(NULL), |
30 spawn_target_(L""), | 30 spawn_target_(L""), |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 item.iItem = ListView_GetItemCount(list_view_); | 659 item.iItem = ListView_GetItemCount(list_view_); |
660 item.iSubItem = 0; | 660 item.iSubItem = 0; |
661 item.mask = LVIF_TEXT | LVIF_PARAM; | 661 item.mask = LVIF_TEXT | LVIF_PARAM; |
662 item.pszText = message_time; | 662 item.pszText = message_time; |
663 item.lParam = 0; | 663 item.lParam = 0; |
664 | 664 |
665 ListView_InsertItem(list_view_, &item); | 665 ListView_InsertItem(list_view_, &item); |
666 | 666 |
667 delete[] message_time; | 667 delete[] message_time; |
668 } | 668 } |
OLD | NEW |