This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a display change observer and make the window delegates update their cached HardwareDisplayController pointer as a result of changes in ScreenManager. BUG=446184 NOTRY=true Review URL: https://codereview.chromium.org/844343002 Cr-Commit-Position: refs/heads/master@{#311112} Review URL: https://codereview.chromium.org/855153002 Cr-Commit-Position: refs/branch-heads/2272@{#40} Cr-Branched-From: 827a380-refs/heads/master@{#310958}
- Loading branch information
Showing
8 changed files
with
156 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ | ||
#define UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ | ||
|
||
namespace ui { | ||
|
||
class HardwareDisplayController; | ||
|
||
class DisplayChangeObserver { | ||
public: | ||
virtual ~DisplayChangeObserver() {} | ||
|
||
// Called when |controller| was changed/added. | ||
virtual void OnDisplayChanged(HardwareDisplayController* controller) = 0; | ||
|
||
// Called just before |controller| is removed. Observers that cached | ||
// |controller| must invalidate it at this point. | ||
virtual void OnDisplayRemoved(HardwareDisplayController* controller) = 0; | ||
}; | ||
|
||
} // namespace ui | ||
|
||
#endif // UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.