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

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

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Add functions for configuring cached displays Created 4 years, 7 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 #ifndef UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 5 #ifndef UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
6 #define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 6 #define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 // NativeDisplayDelegate overrides: 23 // NativeDisplayDelegate overrides:
24 void Initialize() override; 24 void Initialize() override;
25 void GrabServer() override; 25 void GrabServer() override;
26 void UngrabServer() override; 26 void UngrabServer() override;
27 void TakeDisplayControl(const DisplayControlCallback& callback) override; 27 void TakeDisplayControl(const DisplayControlCallback& callback) override;
28 void RelinquishDisplayControl( 28 void RelinquishDisplayControl(
29 const DisplayControlCallback& callback) override; 29 const DisplayControlCallback& callback) override;
30 void SyncWithServer() override; 30 void SyncWithServer() override;
31 void SetBackgroundColor(uint32_t color_argb) override; 31 void SetBackgroundColor(uint32_t color_argb) override;
32 void ForceDPMSOn() override; 32 void ForceDPMSOn() override;
33 void GetCachedDisplays(const GetDisplaysCallback& callback) override;
33 void GetDisplays(const GetDisplaysCallback& callback) override; 34 void GetDisplays(const GetDisplaysCallback& callback) override;
34 void AddMode(const ui::DisplaySnapshot& output, 35 void AddMode(const ui::DisplaySnapshot& output,
35 const ui::DisplayMode* mode) override; 36 const ui::DisplayMode* mode) override;
36 void Configure(const ui::DisplaySnapshot& output, 37 void Configure(const ui::DisplaySnapshot& output,
37 const ui::DisplayMode* mode, 38 const ui::DisplayMode* mode,
38 const gfx::Point& origin, 39 const gfx::Point& origin,
39 const ConfigureCallback& callback) override; 40 const ConfigureCallback& callback) override;
40 void CreateFrameBuffer(const gfx::Size& size) override; 41 void CreateFrameBuffer(const gfx::Size& size) override;
41 void GetHDCPState(const ui::DisplaySnapshot& output, 42 void GetHDCPState(const ui::DisplaySnapshot& output,
42 const GetHDCPStateCallback& callback) override; 43 const GetHDCPStateCallback& callback) override;
(...skipping 14 matching lines...) Expand all
57 58
58 private: 59 private:
59 std::vector<std::unique_ptr<DisplaySnapshot>> displays_; 60 std::vector<std::unique_ptr<DisplaySnapshot>> displays_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone); 62 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone);
62 }; 63 };
63 64
64 } // namespace ui 65 } // namespace ui
65 66
66 #endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_ 67 #endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
OLDNEW
« no previous file with comments | « ui/display/types/native_display_delegate.h ('k') | ui/ozone/common/native_display_delegate_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698