Chromium Code Reviews| 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/desktop.h" | 8 #include "ui/aura/desktop.h" |
| 9 #include "ui/aura/event.h" | 9 #include "ui/aura/event.h" |
| 10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 389 | 389 |
| 390 void NativeWidgetAura::SetFullscreen(bool fullscreen) { | 390 void NativeWidgetAura::SetFullscreen(bool fullscreen) { |
| 391 fullscreen ? window_->Fullscreen() : window_->Restore(); | 391 fullscreen ? window_->Fullscreen() : window_->Restore(); |
| 392 } | 392 } |
| 393 | 393 |
| 394 bool NativeWidgetAura::IsFullscreen() const { | 394 bool NativeWidgetAura::IsFullscreen() const { |
| 395 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; | 395 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; |
| 396 } | 396 } |
| 397 | 397 |
| 398 void NativeWidgetAura::SetOpacity(unsigned char opacity) { | 398 void NativeWidgetAura::SetOpacity(unsigned char opacity) { |
| 399 NOTIMPLEMENTED(); | 399 window_->SetOpacity(opacity); |
|
sky
2011/10/24 23:59:51
I think we should just call through to the layer.
xiyuan
2011/10/25 04:19:09
Done.
| |
| 400 } | 400 } |
| 401 | 401 |
| 402 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { | 402 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { |
| 403 NOTIMPLEMENTED(); | 403 NOTIMPLEMENTED(); |
| 404 } | 404 } |
| 405 | 405 |
| 406 bool NativeWidgetAura::IsAccessibleWidget() const { | 406 bool NativeWidgetAura::IsAccessibleWidget() const { |
| 407 NOTIMPLEMENTED(); | 407 NOTIMPLEMENTED(); |
| 408 return false; | 408 return false; |
| 409 } | 409 } |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 644 } | 644 } |
| 645 | 645 |
| 646 // static | 646 // static |
| 647 bool NativeWidgetPrivate::IsMouseButtonDown() { | 647 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 648 NOTIMPLEMENTED(); | 648 NOTIMPLEMENTED(); |
| 649 return false; | 649 return false; |
| 650 } | 650 } |
| 651 | 651 |
| 652 } // namespace internal | 652 } // namespace internal |
| 653 } // namespace views | 653 } // namespace views |
| OLD | NEW |