| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 NOTIMPLEMENTED(); | 202 NOTIMPLEMENTED(); |
| 203 return NULL; | 203 return NULL; |
| 204 } | 204 } |
| 205 | 205 |
| 206 TooltipManager* NativeWidgetMac::GetTooltipManager() const { | 206 TooltipManager* NativeWidgetMac::GetTooltipManager() const { |
| 207 NOTIMPLEMENTED(); | 207 NOTIMPLEMENTED(); |
| 208 return NULL; | 208 return NULL; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void NativeWidgetMac::SetCapture() { | 211 void NativeWidgetMac::SetCapture() { |
| 212 NOTIMPLEMENTED(); | 212 if (bridge_ && !bridge_->HasCapture()) |
| 213 bridge_->AcquireCapture(); |
| 213 } | 214 } |
| 214 | 215 |
| 215 void NativeWidgetMac::ReleaseCapture() { | 216 void NativeWidgetMac::ReleaseCapture() { |
| 216 NOTIMPLEMENTED(); | 217 if (bridge_) |
| 218 bridge_->ReleaseCapture(); |
| 217 } | 219 } |
| 218 | 220 |
| 219 bool NativeWidgetMac::HasCapture() const { | 221 bool NativeWidgetMac::HasCapture() const { |
| 220 NOTIMPLEMENTED(); | 222 return bridge_ && bridge_->HasCapture(); |
| 221 return false; | |
| 222 } | 223 } |
| 223 | 224 |
| 224 InputMethod* NativeWidgetMac::CreateInputMethod() { | 225 InputMethod* NativeWidgetMac::CreateInputMethod() { |
| 225 return bridge_ ? bridge_->CreateInputMethod() : NULL; | 226 return bridge_ ? bridge_->CreateInputMethod() : NULL; |
| 226 } | 227 } |
| 227 | 228 |
| 228 internal::InputMethodDelegate* NativeWidgetMac::GetInputMethodDelegate() { | 229 internal::InputMethodDelegate* NativeWidgetMac::GetInputMethodDelegate() { |
| 229 return bridge_.get(); | 230 return bridge_.get(); |
| 230 } | 231 } |
| 231 | 232 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 640 } |
| 640 | 641 |
| 641 // static | 642 // static |
| 642 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 643 NOTIMPLEMENTED(); | 644 NOTIMPLEMENTED(); |
| 644 return gfx::FontList(); | 645 return gfx::FontList(); |
| 645 } | 646 } |
| 646 | 647 |
| 647 } // namespace internal | 648 } // namespace internal |
| 648 } // namespace views | 649 } // namespace views |
| OLD | NEW |