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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 } | 582 } |
583 | 583 |
584 // static | 584 // static |
585 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, | 585 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, |
586 gfx::NativeView new_parent) { | 586 gfx::NativeView new_parent) { |
587 NOTIMPLEMENTED(); | 587 NOTIMPLEMENTED(); |
588 } | 588 } |
589 | 589 |
590 // static | 590 // static |
591 bool NativeWidgetPrivate::IsMouseButtonDown() { | 591 bool NativeWidgetPrivate::IsMouseButtonDown() { |
592 NOTIMPLEMENTED(); | 592 return [NSEvent pressedMouseButtons] != 0; |
593 return false; | |
594 } | 593 } |
595 | 594 |
596 // static | 595 // static |
597 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 596 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
598 NOTIMPLEMENTED(); | 597 NOTIMPLEMENTED(); |
599 return gfx::FontList(); | 598 return gfx::FontList(); |
600 } | 599 } |
601 | 600 |
602 } // namespace internal | 601 } // namespace internal |
603 } // namespace views | 602 } // namespace views |
OLD | NEW |