refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)
This commit is contained in:
parent
2a2a1a834c
commit
65a980c673
231 changed files with 918 additions and 576 deletions
|
@ -27,6 +27,10 @@ class LayeredWindowUpdater : public viz::mojom::LayeredWindowUpdater {
|
|||
OnPaintCallback callback);
|
||||
~LayeredWindowUpdater() override;
|
||||
|
||||
// disable copy
|
||||
LayeredWindowUpdater(const LayeredWindowUpdater&) = delete;
|
||||
LayeredWindowUpdater& operator=(const LayeredWindowUpdater&) = delete;
|
||||
|
||||
void SetActive(bool active);
|
||||
|
||||
// viz::mojom::LayeredWindowUpdater implementation.
|
||||
|
@ -43,8 +47,6 @@ class LayeredWindowUpdater : public viz::mojom::LayeredWindowUpdater {
|
|||
#if !defined(WIN32)
|
||||
base::WritableSharedMemoryMapping shm_mapping_;
|
||||
#endif
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(LayeredWindowUpdater);
|
||||
};
|
||||
|
||||
class OffScreenHostDisplayClient : public viz::HostDisplayClient {
|
||||
|
@ -53,6 +55,11 @@ class OffScreenHostDisplayClient : public viz::HostDisplayClient {
|
|||
OnPaintCallback callback);
|
||||
~OffScreenHostDisplayClient() override;
|
||||
|
||||
// disable copy
|
||||
OffScreenHostDisplayClient(const OffScreenHostDisplayClient&) = delete;
|
||||
OffScreenHostDisplayClient& operator=(const OffScreenHostDisplayClient&) =
|
||||
delete;
|
||||
|
||||
void SetActive(bool active);
|
||||
|
||||
private:
|
||||
|
@ -72,8 +79,6 @@ class OffScreenHostDisplayClient : public viz::HostDisplayClient {
|
|||
std::unique_ptr<LayeredWindowUpdater> layered_window_updater_;
|
||||
OnPaintCallback callback_;
|
||||
bool active_ = false;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(OffScreenHostDisplayClient);
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue