OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_mac.h" | 5 #include "ui/views/widget/native_widget_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 } | 581 } |
582 | 582 |
583 // static | 583 // static |
584 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, | 584 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, |
585 gfx::NativeView new_parent) { | 585 gfx::NativeView new_parent) { |
586 NOTIMPLEMENTED(); | 586 NOTIMPLEMENTED(); |
587 } | 587 } |
588 | 588 |
589 // static | 589 // static |
590 bool NativeWidgetPrivate::IsMouseButtonDown() { | 590 bool NativeWidgetPrivate::IsMouseButtonDown() { |
591 NOTIMPLEMENTED(); | 591 return [NSEvent pressedMouseButtons] != 0; |
592 return false; | |
593 } | 592 } |
594 | 593 |
595 // static | 594 // static |
596 bool NativeWidgetPrivate::IsTouchDown() { | 595 bool NativeWidgetPrivate::IsTouchDown() { |
597 NOTIMPLEMENTED(); | 596 NOTIMPLEMENTED(); |
598 return false; | 597 return false; |
599 } | 598 } |
600 | 599 |
601 // static | 600 // static |
602 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 601 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
603 NOTIMPLEMENTED(); | 602 NOTIMPLEMENTED(); |
604 return gfx::FontList(); | 603 return gfx::FontList(); |
605 } | 604 } |
606 | 605 |
607 } // namespace internal | 606 } // namespace internal |
608 } // namespace views | 607 } // namespace views |
OLD | NEW |