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

Unified Diff: ui/display/types/native_display_delegate.h

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: Remove include in favour of forward declare Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/display.gyp ('k') | ui/ozone/common/native_display_delegate_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/native_display_delegate.h
diff --git a/ui/display/types/native_display_delegate.h b/ui/display/types/native_display_delegate.h
index 7bf7b6befd9a66e23e764ee6849b5eae32465fcb..1f542c61772e12d0209c41a4dca8dde12ddcc73a 100644
--- a/ui/display/types/native_display_delegate.h
+++ b/ui/display/types/native_display_delegate.h
@@ -24,6 +24,8 @@ class DisplaySnapshot;
class NativeDisplayObserver;
+typedef base::Callback<void(const std::vector<ui::DisplaySnapshot*>&)>
+ GetDisplaysCallback;
typedef base::Callback<void(bool)> ConfigureCallback;
// Interface for classes that perform display configuration actions on behalf
@@ -62,6 +64,8 @@ class DISPLAY_TYPES_EXPORT NativeDisplayDelegate {
// pointers.
virtual std::vector<ui::DisplaySnapshot*> GetDisplays() = 0;
+ virtual void GetDisplays(const GetDisplaysCallback& callback) = 0;
+
// Adds |mode| to |output|. |mode| must be a valid display mode pointer.
virtual void AddMode(const ui::DisplaySnapshot& output,
const ui::DisplayMode* mode) = 0;
« no previous file with comments | « ui/display/display.gyp ('k') | ui/ozone/common/native_display_delegate_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698