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