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

Unified Diff: services/ui/display/screen_manager_forwarding.h

Issue 2835933005: Make ForwardingDisplayDelegate initially sync. (Closed)
Patch Set: Add comment explaining sync usage. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/sync_call_restrictions.h ('k') | services/ui/display/screen_manager_forwarding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_forwarding.h
diff --git a/services/ui/display/screen_manager_forwarding.h b/services/ui/display/screen_manager_forwarding.h
index 9eac7837521c878a21b4be9033f638db0ffda66a..51d576456e31525ceb77b8913e91756af2c6d90f 100644
--- a/services/ui/display/screen_manager_forwarding.h
+++ b/services/ui/display/screen_manager_forwarding.h
@@ -43,7 +43,8 @@ class ScreenManagerForwarding
void OnDisplaySnapshotsInvalidated() override;
// mojom::NativeDisplayDelegate:
- void Initialize(mojom::NativeDisplayObserverPtr observer) override;
+ void Initialize(mojom::NativeDisplayObserverPtr observer,
+ const InitializeCallback& callback) override;
void TakeDisplayControl(const TakeDisplayControlCallback& callback) override;
void RelinquishDisplayControl(
const RelinquishDisplayControlCallback& callback) override;
@@ -69,9 +70,8 @@ class ScreenManagerForwarding
private:
// Forwards results from GetDisplays() back with |callback|.
- void ForwardGetDisplays(
- const mojom::NativeDisplayDelegate::GetDisplaysCallback& callback,
- const std::vector<DisplaySnapshot*>& displays);
+ void ForwardGetDisplays(const GetDisplaysCallback& callback,
+ const std::vector<DisplaySnapshot*>& displays);
// Forwards results from call to Configure() back with |callback|.
void ForwardConfigure(
« no previous file with comments | « mojo/public/cpp/bindings/sync_call_restrictions.h ('k') | services/ui/display/screen_manager_forwarding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698