| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/widget/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 10 #include "ui/aura/client/drag_drop_client.h" | 10 #include "ui/aura/client/drag_drop_client.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 FROM_HERE, | 383 FROM_HERE, |
| 384 base::Bind(&NativeWidgetAura::CloseNow, | 384 base::Bind(&NativeWidgetAura::CloseNow, |
| 385 close_widget_factory_.GetWeakPtr())); | 385 close_widget_factory_.GetWeakPtr())); |
| 386 } | 386 } |
| 387 } | 387 } |
| 388 | 388 |
| 389 void NativeWidgetAura::CloseNow() { | 389 void NativeWidgetAura::CloseNow() { |
| 390 delete window_; | 390 delete window_; |
| 391 } | 391 } |
| 392 | 392 |
| 393 void NativeWidgetAura::EnableClose(bool enable) { | |
| 394 // http://crbug.com/102581 | |
| 395 NOTIMPLEMENTED(); | |
| 396 } | |
| 397 | |
| 398 void NativeWidgetAura::Show() { | 393 void NativeWidgetAura::Show() { |
| 399 ShowWithWindowState(ui::SHOW_STATE_INACTIVE); | 394 ShowWithWindowState(ui::SHOW_STATE_INACTIVE); |
| 400 } | 395 } |
| 401 | 396 |
| 402 void NativeWidgetAura::Hide() { | 397 void NativeWidgetAura::Hide() { |
| 403 window_->Hide(); | 398 window_->Hide(); |
| 404 } | 399 } |
| 405 | 400 |
| 406 void NativeWidgetAura::ShowMaximizedWithBounds( | 401 void NativeWidgetAura::ShowMaximizedWithBounds( |
| 407 const gfx::Rect& restored_bounds) { | 402 const gfx::Rect& restored_bounds) { |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 NOTIMPLEMENTED(); | 786 NOTIMPLEMENTED(); |
| 792 } | 787 } |
| 793 | 788 |
| 794 // static | 789 // static |
| 795 bool NativeWidgetPrivate::IsMouseButtonDown() { | 790 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 796 return aura::Desktop::GetInstance()->IsMouseButtonDown(); | 791 return aura::Desktop::GetInstance()->IsMouseButtonDown(); |
| 797 } | 792 } |
| 798 | 793 |
| 799 } // namespace internal | 794 } // namespace internal |
| 800 } // namespace views | 795 } // namespace views |
| OLD | NEW |