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/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #include "ui/gfx/font_list.h" | 10 #include "ui/gfx/font_list.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 void NativeWidgetMac::InitModalType(ui::ModalType modal_type) { | 201 void NativeWidgetMac::InitModalType(ui::ModalType modal_type) { |
202 NOTIMPLEMENTED(); | 202 NOTIMPLEMENTED(); |
203 } | 203 } |
204 | 204 |
205 gfx::Rect NativeWidgetMac::GetWindowBoundsInScreen() const { | 205 gfx::Rect NativeWidgetMac::GetWindowBoundsInScreen() const { |
206 NOTIMPLEMENTED(); | 206 NOTIMPLEMENTED(); |
207 return gfx::Rect(); | 207 return gfx::Rect(); |
208 } | 208 } |
209 | 209 |
210 gfx::Rect NativeWidgetMac::GetClientAreaBoundsInScreen() const { | 210 gfx::Rect NativeWidgetMac::GetClientAreaBoundsInScreen() const { |
211 NOTIMPLEMENTED(); | 211 NSWindow* window = bridge_->ns_window(); |
212 return gfx::Rect(); | 212 return gfx::ScreenRectFromNSRect( |
tapted
2014/06/17 13:23:57
hm - my next patch is looking like it won't need t
Andre
2014/06/18 21:48:36
I don't need this to get the tests to pass, so I w
| |
213 [window contentRectForFrameRect:[window frame]]); | |
213 } | 214 } |
214 | 215 |
215 gfx::Rect NativeWidgetMac::GetRestoredBounds() const { | 216 gfx::Rect NativeWidgetMac::GetRestoredBounds() const { |
216 NOTIMPLEMENTED(); | 217 NOTIMPLEMENTED(); |
217 return gfx::Rect(); | 218 return gfx::Rect(); |
218 } | 219 } |
219 | 220 |
220 void NativeWidgetMac::SetBounds(const gfx::Rect& bounds) { | 221 void NativeWidgetMac::SetBounds(const gfx::Rect& bounds) { |
221 NSRect frame_rect = [bridge_->ns_window() | 222 NSRect frame_rect = [bridge_->ns_window() |
222 frameRectForContentRect:gfx::ScreenRectToNSRect(bounds)]; | 223 frameRectForContentRect:gfx::ScreenRectToNSRect(bounds)]; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
475 } | 476 } |
476 | 477 |
477 // static | 478 // static |
478 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 479 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
479 NOTIMPLEMENTED(); | 480 NOTIMPLEMENTED(); |
480 return gfx::FontList(); | 481 return gfx::FontList(); |
481 } | 482 } |
482 | 483 |
483 } // namespace internal | 484 } // namespace internal |
484 } // namespace views | 485 } // namespace views |
OLD | NEW |