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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm

Issue 1775223002: Prepare chrome/ for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Fix null-window error. Created 4 years, 9 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
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
index 59608c95b7ef02d7adfb7a3edaabe0faa5aa190b..ebd04cf141d6fd4f45905ea02228d4cb28cefbbe 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm
@@ -18,6 +18,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#import "testing/gtest_mac.h"
#include "testing/platform_test.h"
+#include "ui/base/cocoa/cocoa_base_utils.h"
using ::testing::A;
using ::testing::InSequence;
@@ -50,7 +51,8 @@ NSEvent* Event(NSView* view, const NSPoint point, const NSEventType type,
const NSUInteger clickCount) {
NSWindow* window([view window]);
const NSPoint locationInWindow([view convertPoint:point toView:nil]);
- const NSPoint location([window convertBaseToScreen:locationInWindow]);
+ const NSPoint location =
+ ui::ConvertPointFromWindowToScreen(window, locationInWindow);
return [NSEvent mouseEventWithType:type
location:location
modifierFlags:0
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.mm ('k') | chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698