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:
|
||||
// views::WidgetDelegate:
|
||||
void DeleteDelegate() override;
|
||||
views::Widget* GetWidget() override;
|
||||
const views::Widget* GetWidget() const override;
|
||||
bool CanResize() const override;
|
||||
|
|
|
@ -1305,9 +1305,6 @@ gfx::Rect NativeWindowMac::WindowBoundsToContentBounds(
|
|||
}
|
||||
}
|
||||
|
||||
void NativeWindowMac::DeleteDelegate() {
|
||||
}
|
||||
|
||||
views::Widget* NativeWindowMac::GetWidget() {
|
||||
return widget_.get();
|
||||
}
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
// on the fly.
|
||||
// TODO(zcbenz): Add interface in NativeWidgetMac to allow overriding creating
|
||||
// window delegate.
|
||||
views::BridgedNativeWidget* bridget_view =
|
||||
views::BridgedNativeWidget* bridged_view =
|
||||
views::NativeWidgetMac::GetBridgeForNativeWindow(
|
||||
shell->GetNativeWindow());
|
||||
if ((self = [super initWithBridgedNativeWidget:bridget_view])) {
|
||||
if ((self = [super initWithBridgedNativeWidget:bridged_view])) {
|
||||
shell_ = shell;
|
||||
is_zooming_ = false;
|
||||
level_ = [shell_->GetNativeWindow() level];
|
||||
|
|
Loading…
Reference in a new issue