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
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
#include "shell/common/api/api.mojom.h"
|
||||
|
@ -33,6 +32,10 @@ class NativeBrowserView : public content::WebContentsObserver {
|
|||
public:
|
||||
~NativeBrowserView() override;
|
||||
|
||||
// disable copy
|
||||
NativeBrowserView(const NativeBrowserView&) = delete;
|
||||
NativeBrowserView& operator=(const NativeBrowserView&) = delete;
|
||||
|
||||
static NativeBrowserView* Create(
|
||||
InspectableWebContents* inspectable_web_contents);
|
||||
|
||||
|
@ -65,9 +68,6 @@ class NativeBrowserView : public content::WebContentsObserver {
|
|||
|
||||
InspectableWebContents* inspectable_web_contents_;
|
||||
std::vector<mojom::DraggableRegionPtr> draggable_regions_;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(NativeBrowserView);
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue