| 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 "views/widget/native_widget_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/desktop.h" | 9 #include "ui/aura/desktop.h" |
| 10 #include "ui/aura/desktop_observer.h" | 10 #include "ui/aura/desktop_observer.h" |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 420 |
| 421 void NativeWidgetAura::SetAlwaysOnTop(bool on_top) { | 421 void NativeWidgetAura::SetAlwaysOnTop(bool on_top) { |
| 422 window_->SetIntProperty(aura::kAlwaysOnTopKey, on_top); | 422 window_->SetIntProperty(aura::kAlwaysOnTopKey, on_top); |
| 423 } | 423 } |
| 424 | 424 |
| 425 void NativeWidgetAura::Maximize() { | 425 void NativeWidgetAura::Maximize() { |
| 426 window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); | 426 window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); |
| 427 } | 427 } |
| 428 | 428 |
| 429 void NativeWidgetAura::Minimize() { | 429 void NativeWidgetAura::Minimize() { |
| 430 // No minimized window for aura. crbug.com/104571. |
| 430 NOTREACHED(); | 431 NOTREACHED(); |
| 431 } | 432 } |
| 432 | 433 |
| 433 bool NativeWidgetAura::IsMaximized() const { | 434 bool NativeWidgetAura::IsMaximized() const { |
| 434 return window_->GetIntProperty(aura::kShowStateKey) == | 435 return window_->GetIntProperty(aura::kShowStateKey) == |
| 435 ui::SHOW_STATE_MAXIMIZED; | 436 ui::SHOW_STATE_MAXIMIZED; |
| 436 } | 437 } |
| 437 | 438 |
| 438 bool NativeWidgetAura::IsMinimized() const { | 439 bool NativeWidgetAura::IsMinimized() const { |
| 439 return window_->GetIntProperty(aura::kShowStateKey) == | 440 return window_->GetIntProperty(aura::kShowStateKey) == |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 NOTIMPLEMENTED(); | 730 NOTIMPLEMENTED(); |
| 730 } | 731 } |
| 731 | 732 |
| 732 // static | 733 // static |
| 733 bool NativeWidgetPrivate::IsMouseButtonDown() { | 734 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 734 return aura::Desktop::GetInstance()->IsMouseButtonDown(); | 735 return aura::Desktop::GetInstance()->IsMouseButtonDown(); |
| 735 } | 736 } |
| 736 | 737 |
| 737 } // namespace internal | 738 } // namespace internal |
| 738 } // namespace views | 739 } // namespace views |
| OLD | NEW |