Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ash/test/test_metro_viewer_process_host.h" | 5 #include "ash/test/test_metro_viewer_process_host.h" |
| 6 | 6 |
| 7 #include <windef.h> | 7 #include <windef.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "ui/aura/remote_window_tree_host_win.h" | 10 #include "ui/aura/remote_window_tree_host_win.h" |
| 11 #include "ui/gfx/win/dpi.h" | 11 #include "ui/gfx/win/dpi.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 TestMetroViewerProcessHost::TestMetroViewerProcessHost( | 16 TestMetroViewerProcessHost::TestMetroViewerProcessHost( |
| 17 base::SingleThreadTaskRunner* ipc_task_runner) | 17 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) |
| 18 : MetroViewerProcessHost(ipc_task_runner), | 18 : MetroViewerProcessHost(ipc_task_runner), closed_unexpectedly_(false) { |
|
Daniel Erat
2014/11/24 18:53:55
nit: back to one per line since they don't all fit
dcheng
2014/11/24 19:02:36
Yes. I'd prefer not to fight clang-format, because
Nico
2014/11/24 19:05:22
I think clang-format used to do one-per-line-or-al
| |
| 19 closed_unexpectedly_(false) { | |
| 20 } | 19 } |
| 21 | 20 |
| 22 TestMetroViewerProcessHost::~TestMetroViewerProcessHost() { | 21 TestMetroViewerProcessHost::~TestMetroViewerProcessHost() { |
| 23 } | 22 } |
| 24 | 23 |
| 25 void TestMetroViewerProcessHost::TerminateViewer() { | 24 void TestMetroViewerProcessHost::TerminateViewer() { |
| 26 base::ProcessId viewer_process_id = GetViewerProcessId(); | 25 base::ProcessId viewer_process_id = GetViewerProcessId(); |
| 27 if (viewer_process_id != base::kNullProcessId) { | 26 if (viewer_process_id != base::kNullProcessId) { |
| 28 base::ProcessHandle viewer_process = NULL; | 27 base::ProcessHandle viewer_process = NULL; |
| 29 base::OpenProcessHandleWithAccess( | 28 base::OpenProcessHandleWithAccess( |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 59 void TestMetroViewerProcessHost::OnHandleSearchRequest( | 58 void TestMetroViewerProcessHost::OnHandleSearchRequest( |
| 60 const base::string16& search_string) { | 59 const base::string16& search_string) { |
| 61 } | 60 } |
| 62 | 61 |
| 63 void TestMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, | 62 void TestMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, |
| 64 uint32 height) { | 63 uint32 height) { |
| 65 } | 64 } |
| 66 | 65 |
| 67 } // namespace test | 66 } // namespace test |
| 68 } // namespace ash | 67 } // namespace ash |
| OLD | NEW |