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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void NativeWidgetMac::ReorderNativeViews() { | 188 void NativeWidgetMac::ReorderNativeViews() { |
189 if (bridge_) | 189 if (bridge_) |
190 bridge_->SetRootView(GetWidget()->GetRootView()); | 190 bridge_->SetRootView(GetWidget()->GetRootView()); |
191 } | 191 } |
192 | 192 |
193 void NativeWidgetMac::ViewRemoved(View* view) { | 193 void NativeWidgetMac::ViewRemoved(View* view) { |
194 NOTIMPLEMENTED(); | 194 NOTIMPLEMENTED(); |
195 } | 195 } |
196 | 196 |
197 void NativeWidgetMac::SetNativeWindowProperty(const char* name, void* value) { | 197 void NativeWidgetMac::SetNativeWindowProperty(const char* name, void* value) { |
198 NOTIMPLEMENTED(); | 198 bridge_->SetNativeWindowProperty(name, value); |
199 } | 199 } |
200 | 200 |
201 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { | 201 void* NativeWidgetMac::GetNativeWindowProperty(const char* name) const { |
202 NOTIMPLEMENTED(); | 202 return bridge_->GetNativeWindowProperty(name); |
203 return NULL; | |
204 } | 203 } |
205 | 204 |
206 TooltipManager* NativeWidgetMac::GetTooltipManager() const { | 205 TooltipManager* NativeWidgetMac::GetTooltipManager() const { |
207 NOTIMPLEMENTED(); | 206 NOTIMPLEMENTED(); |
208 return NULL; | 207 return NULL; |
209 } | 208 } |
210 | 209 |
211 void NativeWidgetMac::SetCapture() { | 210 void NativeWidgetMac::SetCapture() { |
212 if (bridge_ && !bridge_->HasCapture()) | 211 if (bridge_ && !bridge_->HasCapture()) |
213 bridge_->AcquireCapture(); | 212 bridge_->AcquireCapture(); |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 639 } |
641 | 640 |
642 // static | 641 // static |
643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 642 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
644 NOTIMPLEMENTED(); | 643 NOTIMPLEMENTED(); |
645 return gfx::FontList(); | 644 return gfx::FontList(); |
646 } | 645 } |
647 | 646 |
648 } // namespace internal | 647 } // namespace internal |
649 } // namespace views | 648 } // namespace views |
OLD | NEW |