remove unnecessary overrides
This commit is contained in:
parent
5e48dd9d45
commit
cf70267871
3 changed files with 2 additions and 6 deletions
|
@ -147,7 +147,6 @@ class NativeWindowMac : public NativeWindow,
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// views::WidgetDelegate:
|
// views::WidgetDelegate:
|
||||||
void DeleteDelegate() override;
|
|
||||||
views::Widget* GetWidget() override;
|
views::Widget* GetWidget() override;
|
||||||
const views::Widget* GetWidget() const override;
|
const views::Widget* GetWidget() const override;
|
||||||
bool CanResize() const override;
|
bool CanResize() const override;
|
||||||
|
|
|
@ -1305,9 +1305,6 @@ gfx::Rect NativeWindowMac::WindowBoundsToContentBounds(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::DeleteDelegate() {
|
|
||||||
}
|
|
||||||
|
|
||||||
views::Widget* NativeWindowMac::GetWidget() {
|
views::Widget* NativeWindowMac::GetWidget() {
|
||||||
return widget_.get();
|
return widget_.get();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
// on the fly.
|
// on the fly.
|
||||||
// TODO(zcbenz): Add interface in NativeWidgetMac to allow overriding creating
|
// TODO(zcbenz): Add interface in NativeWidgetMac to allow overriding creating
|
||||||
// window delegate.
|
// window delegate.
|
||||||
views::BridgedNativeWidget* bridget_view =
|
views::BridgedNativeWidget* bridged_view =
|
||||||
views::NativeWidgetMac::GetBridgeForNativeWindow(
|
views::NativeWidgetMac::GetBridgeForNativeWindow(
|
||||||
shell->GetNativeWindow());
|
shell->GetNativeWindow());
|
||||||
if ((self = [super initWithBridgedNativeWidget:bridget_view])) {
|
if ((self = [super initWithBridgedNativeWidget:bridged_view])) {
|
||||||
shell_ = shell;
|
shell_ = shell;
|
||||||
is_zooming_ = false;
|
is_zooming_ = false;
|
||||||
level_ = [shell_->GetNativeWindow() level];
|
level_ = [shell_->GetNativeWindow() level];
|
||||||
|
|
Loading…
Reference in a new issue