| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/display/screen_manager_stub_internal.h" | 5 #include "services/ui/display/screen_manager_stub_internal.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 void ScreenManagerStubInternal::RequestCloseDisplay(int64_t display_id) { | 68 void ScreenManagerStubInternal::RequestCloseDisplay(int64_t display_id) { |
| 69 if (display_id == display_id_) { | 69 if (display_id == display_id_) { |
| 70 base::ThreadTaskRunnerHandle::Get()->PostTask( | 70 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 71 FROM_HERE, base::Bind(&ScreenManagerDelegate::OnDisplayRemoved, | 71 FROM_HERE, base::Bind(&ScreenManagerDelegate::OnDisplayRemoved, |
| 72 base::Unretained(delegate_), display_id)); | 72 base::Unretained(delegate_), display_id)); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 int64_t ScreenManagerStubInternal::GetPrimaryDisplayId() const { | |
| 77 return display_id_; | |
| 78 } | |
| 79 | |
| 80 } // namespace display | 76 } // namespace display |
| OLD | NEW |