Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: services/ui/display/platform_screen_impl_ozone.cc

Issue 2128333002: Move PlatformSceen to services/ui/display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/display/platform_screen_impl_ozone.h ('k') | services/ui/service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ws/platform_screen_impl_ozone.h" 5 #include "services/ui/display/platform_screen_impl_ozone.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/display/types/display_constants.h" 11 #include "ui/display/types/display_constants.h"
12 #include "ui/display/types/display_snapshot.h" 12 #include "ui/display/types/display_snapshot.h"
13 #include "ui/display/types/native_display_delegate.h" 13 #include "ui/display/types/native_display_delegate.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/ozone/public/ozone_platform.h" 15 #include "ui/ozone/public/ozone_platform.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 namespace ws { 19 namespace display {
20 namespace { 20 namespace {
21 21
22 // TODO(rjkroege): Remove this code once ozone headless has the same 22 // TODO(rjkroege): Remove this code once ozone headless has the same
23 // display creation semantics as ozone drm. 23 // display creation semantics as ozone drm.
24 // Some ozone platforms do not configure physical displays and so do not 24 // Some ozone platforms do not configure physical displays and so do not
25 // callback into this class via the implementation of NativeDisplayObserver. 25 // callback into this class via the implementation of NativeDisplayObserver.
26 // FixedSizeScreenConfiguration() short-circuits the implementation of display 26 // FixedSizeScreenConfiguration() short-circuits the implementation of display
27 // configuration in this case by calling the |callback| provided to 27 // configuration in this case by calling the |callback| provided to
28 // ConfigurePhysicalDisplay() with a hard-coded |id| and |bounds|. 28 // ConfigurePhysicalDisplay() with a hard-coded |id| and |bounds|.
29 void FixedSizeScreenConfiguration( 29 void FixedSizeScreenConfiguration(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 callback_.Reset(); 85 callback_.Reset();
86 } 86 }
87 87
88 void PlatformScreenImplOzone::OnDisplayModeChangeFailed( 88 void PlatformScreenImplOzone::OnDisplayModeChangeFailed(
89 const ui::DisplayConfigurator::DisplayStateList& displays, 89 const ui::DisplayConfigurator::DisplayStateList& displays,
90 MultipleDisplayState failed_new_state) { 90 MultipleDisplayState failed_new_state) {
91 LOG(ERROR) << "OnDisplayModeChangeFailed from DisplayConfigurator"; 91 LOG(ERROR) << "OnDisplayModeChangeFailed from DisplayConfigurator";
92 callback_.Reset(); 92 callback_.Reset();
93 } 93 }
94 94
95 } // namespace ws 95 } // namespace display
96 } // namespace ui 96 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/display/platform_screen_impl_ozone.h ('k') | services/ui/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698