OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/activation_client.h" | 10 #include "ui/aura/client/activation_client.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 void NativeWidgetAura::SetOpacity(unsigned char opacity) { | 597 void NativeWidgetAura::SetOpacity(unsigned char opacity) { |
598 window_->layer()->SetOpacity(opacity / 255.0); | 598 window_->layer()->SetOpacity(opacity / 255.0); |
599 } | 599 } |
600 | 600 |
601 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { | 601 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { |
602 NOTIMPLEMENTED(); | 602 NOTIMPLEMENTED(); |
603 } | 603 } |
604 | 604 |
605 void NativeWidgetAura::FlashFrame(bool flash) { | 605 void NativeWidgetAura::FlashFrame(bool flash) { |
606 NOTIMPLEMENTED(); | 606 window_->SetProperty(aura::client::kDrawAttentionKey, flash); |
607 } | 607 } |
608 | 608 |
609 bool NativeWidgetAura::IsAccessibleWidget() const { | 609 bool NativeWidgetAura::IsAccessibleWidget() const { |
610 // http://crbug.com/102570 | 610 // http://crbug.com/102570 |
611 //NOTIMPLEMENTED(); | 611 //NOTIMPLEMENTED(); |
612 return false; | 612 return false; |
613 } | 613 } |
614 | 614 |
615 void NativeWidgetAura::RunShellDrag(View* view, | 615 void NativeWidgetAura::RunShellDrag(View* view, |
616 const ui::OSExchangeData& data, | 616 const ui::OSExchangeData& data, |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 } | 971 } |
972 } | 972 } |
973 | 973 |
974 // static | 974 // static |
975 bool NativeWidgetPrivate::IsMouseButtonDown() { | 975 bool NativeWidgetPrivate::IsMouseButtonDown() { |
976 return aura::Env::GetInstance()->is_mouse_button_down(); | 976 return aura::Env::GetInstance()->is_mouse_button_down(); |
977 } | 977 } |
978 | 978 |
979 } // namespace internal | 979 } // namespace internal |
980 } // namespace views | 980 } // namespace views |
OLD | NEW |