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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 void NativeWidgetAura::ClearNativeFocus() { | 507 void NativeWidgetAura::ClearNativeFocus() { |
508 if (window_ && window_->GetFocusManager()) | 508 if (window_ && window_->GetFocusManager()) |
509 window_->GetFocusManager()->SetFocusedWindow(window_); | 509 window_->GetFocusManager()->SetFocusedWindow(window_); |
510 } | 510 } |
511 | 511 |
512 void NativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { | 512 void NativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { |
513 // http://crbug.com/102572 | 513 // http://crbug.com/102572 |
514 NOTIMPLEMENTED(); | 514 NOTIMPLEMENTED(); |
515 } | 515 } |
516 | 516 |
517 bool NativeWidgetAura::ConvertPointFromAncestor(const Widget* ancestor, | |
518 gfx::Point* point) const { | |
519 // http://crbug.com/102573 | |
520 NOTIMPLEMENTED(); | |
521 return false; | |
522 } | |
523 | |
524 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 517 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
525 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); | 518 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); |
526 } | 519 } |
527 | 520 |
528 void NativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 521 void NativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
529 if (!value) | 522 if (!value) |
530 desktop_observer_.reset(); | 523 desktop_observer_.reset(); |
531 else | 524 else |
532 desktop_observer_.reset(new DesktopObserverImpl(this)); | 525 desktop_observer_.reset(new DesktopObserverImpl(this)); |
533 } | 526 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 NOTIMPLEMENTED(); | 779 NOTIMPLEMENTED(); |
787 } | 780 } |
788 | 781 |
789 // static | 782 // static |
790 bool NativeWidgetPrivate::IsMouseButtonDown() { | 783 bool NativeWidgetPrivate::IsMouseButtonDown() { |
791 return aura::Desktop::GetInstance()->IsMouseButtonDown(); | 784 return aura::Desktop::GetInstance()->IsMouseButtonDown(); |
792 } | 785 } |
793 | 786 |
794 } // namespace internal | 787 } // namespace internal |
795 } // namespace views | 788 } // namespace views |
OLD | NEW |