| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 | 161 |
| 162 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { | 162 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { |
| 163 if (bridge_) | 163 if (bridge_) |
| 164 return bridge_->GetNativeWindowProperty(name); | 164 return bridge_->GetNativeWindowProperty(name); |
| 165 | 165 |
| 166 return nullptr; | 166 return nullptr; |
| 167 } | 167 } |
| 168 | 168 |
| 169 TooltipManager* NativeWidgetMac::GetTooltipManager() const { | 169 TooltipManager* NativeWidgetMac::GetTooltipManager() const { |
| 170 NOTIMPLEMENTED(); | 170 if (bridge_) |
| 171 return NULL; | 171 return bridge_->tooltip_manager(); |
| 172 |
| 173 return nullptr; |
| 172 } | 174 } |
| 173 | 175 |
| 174 void NativeWidgetMac::SetCapture() { | 176 void NativeWidgetMac::SetCapture() { |
| 175 if (bridge_ && !bridge_->HasCapture()) | 177 if (bridge_ && !bridge_->HasCapture()) |
| 176 bridge_->AcquireCapture(); | 178 bridge_->AcquireCapture(); |
| 177 } | 179 } |
| 178 | 180 |
| 179 void NativeWidgetMac::ReleaseCapture() { | 181 void NativeWidgetMac::ReleaseCapture() { |
| 180 if (bridge_) | 182 if (bridge_) |
| 181 bridge_->ReleaseCapture(); | 183 bridge_->ReleaseCapture(); |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 } | 635 } |
| 634 | 636 |
| 635 // static | 637 // static |
| 636 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 638 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 637 NOTIMPLEMENTED(); | 639 NOTIMPLEMENTED(); |
| 638 return gfx::FontList(); | 640 return gfx::FontList(); |
| 639 } | 641 } |
| 640 | 642 |
| 641 } // namespace internal | 643 } // namespace internal |
| 642 } // namespace views | 644 } // namespace views |
| OLD | NEW |