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

Unified Diff: ui/display/chromeos/test/test_native_display_delegate.h

Issue 796263002: Remove synchronous GetDisplays() and Configure() from NativeDisplayDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor5
Patch Set: Removed deprecated calls from TestNativeDisplayDelegate and update the ExternalControl test 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
Index: ui/display/chromeos/test/test_native_display_delegate.h
diff --git a/ui/display/chromeos/test/test_native_display_delegate.h b/ui/display/chromeos/test/test_native_display_delegate.h
index 02fd4d4298379b879356c0c7f2a9960416eae746..eac789e197804f8f6c9a20ca5c8c2da1950d4430 100644
--- a/ui/display/chromeos/test/test_native_display_delegate.h
+++ b/ui/display/chromeos/test/test_native_display_delegate.h
@@ -48,12 +48,8 @@ class TestNativeDisplayDelegate : public NativeDisplayDelegate {
void SyncWithServer() override;
void SetBackgroundColor(uint32_t color_argb) override;
void ForceDPMSOn() override;
- std::vector<DisplaySnapshot*> GetDisplays() override;
void GetDisplays(const GetDisplaysCallback& callback) override;
void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override;
- bool Configure(const DisplaySnapshot& output,
- const DisplayMode* mode,
- const gfx::Point& origin) override;
void Configure(const DisplaySnapshot& output,
const DisplayMode* mode,
const gfx::Point& origin,
@@ -70,6 +66,10 @@ class TestNativeDisplayDelegate : public NativeDisplayDelegate {
void RemoveObserver(NativeDisplayObserver* observer) override;
private:
+ bool Configure(const DisplaySnapshot& output,
+ const DisplayMode* mode,
+ const gfx::Point& origin);
+
// Outputs to be returned by GetDisplays().
std::vector<DisplaySnapshot*> outputs_;
« no previous file with comments | « ui/display/chromeos/display_configurator_unittest.cc ('k') | ui/display/chromeos/test/test_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698