| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { | 168 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { |
| 169 if (bridge_) | 169 if (bridge_) |
| 170 return bridge_->GetNativeWindowProperty(name); | 170 return bridge_->GetNativeWindowProperty(name); |
| 171 | 171 |
| 172 return nullptr; | 172 return nullptr; |
| 173 } | 173 } |
| 174 | 174 |
| 175 TooltipManager* NativeWidgetMac::GetTooltipManager() const { | 175 TooltipManager* NativeWidgetMac::GetTooltipManager() const { |
| 176 NOTIMPLEMENTED(); | 176 if (bridge_) |
| 177 return NULL; | 177 return bridge_->tooltip_manager(); |
| 178 |
| 179 return nullptr; |
| 178 } | 180 } |
| 179 | 181 |
| 180 void NativeWidgetMac::SetCapture() { | 182 void NativeWidgetMac::SetCapture() { |
| 181 if (bridge_ && !bridge_->HasCapture()) | 183 if (bridge_ && !bridge_->HasCapture()) |
| 182 bridge_->AcquireCapture(); | 184 bridge_->AcquireCapture(); |
| 183 } | 185 } |
| 184 | 186 |
| 185 void NativeWidgetMac::ReleaseCapture() { | 187 void NativeWidgetMac::ReleaseCapture() { |
| 186 if (bridge_) | 188 if (bridge_) |
| 187 bridge_->ReleaseCapture(); | 189 bridge_->ReleaseCapture(); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 } | 640 } |
| 639 | 641 |
| 640 // static | 642 // static |
| 641 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 642 NOTIMPLEMENTED(); | 644 NOTIMPLEMENTED(); |
| 643 return gfx::FontList(); | 645 return gfx::FontList(); |
| 644 } | 646 } |
| 645 | 647 |
| 646 } // namespace internal | 648 } // namespace internal |
| 647 } // namespace views | 649 } // namespace views |
| OLD | NEW |