| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 gfx::NativeView NativeWidgetMac::GetNativeView() const { | 148 gfx::NativeView NativeWidgetMac::GetNativeView() const { |
| 149 // Returns a BridgedContentView, unless there is no views::RootView set. | 149 // Returns a BridgedContentView, unless there is no views::RootView set. |
| 150 return [GetNativeWindow() contentView]; | 150 return [GetNativeWindow() contentView]; |
| 151 } | 151 } |
| 152 | 152 |
| 153 gfx::NativeWindow NativeWidgetMac::GetNativeWindow() const { | 153 gfx::NativeWindow NativeWidgetMac::GetNativeWindow() const { |
| 154 return bridge_ ? bridge_->ns_window() : nil; | 154 return bridge_ ? bridge_->ns_window() : nil; |
| 155 } | 155 } |
| 156 | 156 |
| 157 gfx::NativeViewAccessible NativeWidgetMac::GetNativeViewAccessible() const { |
| 158 return GetNativeView(); |
| 159 } |
| 160 |
| 157 Widget* NativeWidgetMac::GetTopLevelWidget() { | 161 Widget* NativeWidgetMac::GetTopLevelWidget() { |
| 158 NativeWidgetPrivate* native_widget = GetTopLevelNativeWidget(GetNativeView()); | 162 NativeWidgetPrivate* native_widget = GetTopLevelNativeWidget(GetNativeView()); |
| 159 return native_widget ? native_widget->GetWidget() : NULL; | 163 return native_widget ? native_widget->GetWidget() : NULL; |
| 160 } | 164 } |
| 161 | 165 |
| 162 const ui::Compositor* NativeWidgetMac::GetCompositor() const { | 166 const ui::Compositor* NativeWidgetMac::GetCompositor() const { |
| 163 NOTIMPLEMENTED(); | 167 NOTIMPLEMENTED(); |
| 164 return NULL; | 168 return NULL; |
| 165 } | 169 } |
| 166 | 170 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 } | 601 } |
| 598 | 602 |
| 599 // static | 603 // static |
| 600 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 604 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 601 NOTIMPLEMENTED(); | 605 NOTIMPLEMENTED(); |
| 602 return gfx::FontList(); | 606 return gfx::FontList(); |
| 603 } | 607 } |
| 604 | 608 |
| 605 } // namespace internal | 609 } // namespace internal |
| 606 } // namespace views | 610 } // namespace views |
| OLD | NEW |