Index: ui/views/widget/native_widget_aura.cc |
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc |
index 9c2c1b0f8a93f313059fefc14ad323b641308f51..aff2fee33635ffd8bd549c4f5d14e1094bfcb04b 100644 |
--- a/ui/views/widget/native_widget_aura.cc |
+++ b/ui/views/widget/native_widget_aura.cc |
@@ -440,20 +440,7 @@ gfx::Rect NativeWidgetAura::GetRestoredBounds() const { |
if (restore_bounds) |
return *restore_bounds; |
} |
- gfx::Rect bounds = window_->GetBoundsInScreen(); |
- if (IsDocked()) { |
- // Restore bounds are in screen coordinates, no need to convert. |
- gfx::Rect* restore_bounds = |
- window_->GetProperty(aura::client::kRestoreBoundsKey); |
- // Use current window horizontal offset origin in order to preserve docked |
- // alignment but preserve restored size and vertical offset for the time |
- // when the |window_| gets undocked. |
- if (restore_bounds) { |
- bounds.set_size(restore_bounds->size()); |
- bounds.set_y(restore_bounds->y()); |
- } |
- } |
- return bounds; |
+ return window_->GetBoundsInScreen(); |
} |
std::string NativeWidgetAura::GetWorkspace() const { |
@@ -541,11 +528,8 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) { |
if (!window_) |
return; |
- // TODO(afakhry): Remove Docked Windows in M58. |
- if (state == ui::SHOW_STATE_MAXIMIZED || state == ui::SHOW_STATE_FULLSCREEN || |
- state == ui::SHOW_STATE_DOCKED) { |
+ if (state == ui::SHOW_STATE_MAXIMIZED || state == ui::SHOW_STATE_FULLSCREEN) |
window_->SetProperty(aura::client::kShowStateKey, state); |
- } |
window_->Show(); |
if (delegate_->CanActivate()) { |
if (state != ui::SHOW_STATE_INACTIVE) |
@@ -1000,13 +984,6 @@ NativeWidgetAura::~NativeWidgetAura() { |
//////////////////////////////////////////////////////////////////////////////// |
// NativeWidgetAura, private: |
-// TODO(afakhry): Remove Docked Windows in M58. |
-bool NativeWidgetAura::IsDocked() const { |
- return window_ && |
- window_->GetProperty(aura::client::kShowStateKey) == |
- ui::SHOW_STATE_DOCKED; |
-} |
- |
void NativeWidgetAura::SetInitialFocus(ui::WindowShowState show_state) { |
// The window does not get keyboard messages unless we focus it. |
if (!GetWidget()->SetInitialFocus(show_state)) |