Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: ui/views/widget/native_widget_mac.mm

Issue 329463002: MacViews: Implement text input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/views/views.gyp ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac.mm
diff --git a/ui/views/widget/native_widget_mac.mm b/ui/views/widget/native_widget_mac.mm
index 77d84c95d4c432272adf485025c39a2e6d4d8815..5f3c9d9c2066becb952d3914c278c8dec17df018 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -208,8 +208,9 @@ gfx::Rect NativeWidgetMac::GetWindowBoundsInScreen() const {
}
gfx::Rect NativeWidgetMac::GetClientAreaBoundsInScreen() const {
- NOTIMPLEMENTED();
- return gfx::Rect();
+ NSWindow* window = bridge_->ns_window();
+ 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
+ [window contentRectForFrameRect:[window frame]]);
}
gfx::Rect NativeWidgetMac::GetRestoredBounds() const {
« ui/views/views.gyp ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698