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/platform_screen_stub.h" | 5 #include "services/ui/display/platform_screen_stub.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" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "services/shell/public/cpp/interface_registry.h" | 13 #include "services/service_manager/public/cpp/interface_registry.h" |
14 #include "ui/display/display.h" | 14 #include "ui/display/display.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 | 17 |
18 namespace display { | 18 namespace display { |
19 namespace { | 19 namespace { |
20 | 20 |
21 const int64_t kDisplayId = 1; | 21 const int64_t kDisplayId = 1; |
22 constexpr gfx::Size kDisplaySize(1024, 768); | 22 constexpr gfx::Size kDisplaySize(1024, 768); |
23 | 23 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 FROM_HERE, base::Bind(&PlatformScreenDelegate::OnDisplayRemoved, | 59 FROM_HERE, base::Bind(&PlatformScreenDelegate::OnDisplayRemoved, |
60 base::Unretained(delegate_), display_id)); | 60 base::Unretained(delegate_), display_id)); |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 int64_t PlatformScreenStub::GetPrimaryDisplayId() const { | 64 int64_t PlatformScreenStub::GetPrimaryDisplayId() const { |
65 return kDisplayId; | 65 return kDisplayId; |
66 } | 66 } |
67 | 67 |
68 } // namespace display | 68 } // namespace display |
OLD | NEW |