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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 void NativeWidgetAura::SetFullscreen(bool fullscreen) { | 381 void NativeWidgetAura::SetFullscreen(bool fullscreen) { |
382 fullscreen ? window_->Fullscreen() : window_->Restore(); | 382 fullscreen ? window_->Fullscreen() : window_->Restore(); |
383 } | 383 } |
384 | 384 |
385 bool NativeWidgetAura::IsFullscreen() const { | 385 bool NativeWidgetAura::IsFullscreen() const { |
386 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; | 386 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; |
387 } | 387 } |
388 | 388 |
389 void NativeWidgetAura::SetOpacity(unsigned char opacity) { | 389 void NativeWidgetAura::SetOpacity(unsigned char opacity) { |
390 window_->layer()->SetOpacity(opacity / 255.0); | 390 window_->layer()->SetOpacity(opacity / 255.0); |
391 window_->layer()->ScheduleDraw(); | |
Ben Goodger (Google)
2011/10/31 18:21:29
Shouldn't Layer::SetOpacity do this implicitly?
sky
2011/10/31 20:32:31
Good idea.
| |
391 } | 392 } |
392 | 393 |
393 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { | 394 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { |
394 NOTIMPLEMENTED(); | 395 NOTIMPLEMENTED(); |
395 } | 396 } |
396 | 397 |
397 bool NativeWidgetAura::IsAccessibleWidget() const { | 398 bool NativeWidgetAura::IsAccessibleWidget() const { |
398 NOTIMPLEMENTED(); | 399 NOTIMPLEMENTED(); |
399 return false; | 400 return false; |
400 } | 401 } |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
642 } | 643 } |
643 | 644 |
644 // static | 645 // static |
645 bool NativeWidgetPrivate::IsMouseButtonDown() { | 646 bool NativeWidgetPrivate::IsMouseButtonDown() { |
646 NOTIMPLEMENTED(); | 647 NOTIMPLEMENTED(); |
647 return false; | 648 return false; |
648 } | 649 } |
649 | 650 |
650 } // namespace internal | 651 } // namespace internal |
651 } // namespace views | 652 } // namespace views |
OLD | NEW |