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

Side by Side Diff: ui/ozone/common/native_display_delegate_ozone.cc

Issue 854203002: Read EDID for the 1st display for startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ui/ozone/common/native_display_delegate_ozone.h" 5 #include "ui/ozone/common/native_display_delegate_ozone.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/ozone/common/display_snapshot_proxy.h" 8 #include "ui/ozone/common/display_snapshot_proxy.h"
9 #include "ui/ozone/common/display_util.h" 9 #include "ui/ozone/common/display_util.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() { 13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() {
14 } 14 }
15 15
16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() { 16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
17 } 17 }
18 18
19 void NativeDisplayDelegateOzone::Initialize() { 19 void NativeDisplayDelegateOzone::Initialize() {
20 DisplaySnapshot_Params params = CreateSnapshotFromCommandLine(); 20 DisplaySnapshot_Params params;
21 if (params.type != DISPLAY_CONNECTION_TYPE_NONE) 21 if (CreateSnapshotFromCommandLine(&params)) {
22 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
22 displays_.push_back(new DisplaySnapshotProxy(params)); 23 displays_.push_back(new DisplaySnapshotProxy(params));
24 }
23 } 25 }
24 26
25 void NativeDisplayDelegateOzone::GrabServer() { 27 void NativeDisplayDelegateOzone::GrabServer() {
26 NOTIMPLEMENTED(); 28 NOTIMPLEMENTED();
27 } 29 }
28 30
29 void NativeDisplayDelegateOzone::UngrabServer() { 31 void NativeDisplayDelegateOzone::UngrabServer() {
30 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
31 } 33 }
32 34
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) { 105 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
104 NOTIMPLEMENTED(); 106 NOTIMPLEMENTED();
105 } 107 }
106 108
107 void NativeDisplayDelegateOzone::RemoveObserver( 109 void NativeDisplayDelegateOzone::RemoveObserver(
108 NativeDisplayObserver* observer) { 110 NativeDisplayObserver* observer) {
109 NOTIMPLEMENTED(); 111 NOTIMPLEMENTED();
110 } 112 }
111 113
112 } // namespace ui 114 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698