| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" | 
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" | 
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" | 
| 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 
| 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 12 #import "chrome/browser/ui/cocoa/framed_browser_window.h" | 11 #import "chrome/browser/ui/cocoa/framed_browser_window.h" | 
|  | 12 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" | 
| 14 #import "testing/gtest_mac.h" | 14 #import "testing/gtest_mac.h" | 
| 15 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" | 
| 16 #import "third_party/ocmock/OCMock/OCMock.h" | 16 #import "third_party/ocmock/OCMock/OCMock.h" | 
| 17 | 17 | 
| 18 namespace { | 18 namespace { | 
| 19 NSString* const kAppleTextDirectionDefaultsKey = @"AppleTextDirection"; | 19 NSString* const kAppleTextDirectionDefaultsKey = @"AppleTextDirection"; | 
| 20 NSString* const kForceRTLWritingDirectionDefaultsKey = | 20 NSString* const kForceRTLWritingDirectionDefaultsKey = | 
| 21     @"NSForceRightToLeftWritingDirection"; | 21     @"NSForceRightToLeftWritingDirection"; | 
| 22 }  // namespace | 22 }  // namespace | 
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 303   EXPECT_TRUE(miniaturizeControl); | 303   EXPECT_TRUE(miniaturizeControl); | 
| 304   miniaturizeFrame = [miniaturizeControl convertRect:[miniaturizeControl bounds] | 304   miniaturizeFrame = [miniaturizeControl convertRect:[miniaturizeControl bounds] | 
| 305                                               toView:nil]; | 305                                               toView:nil]; | 
| 306   EXPECT_EQ(NSMaxY(miniaturizeFrame), | 306   EXPECT_EQ(NSMaxY(miniaturizeFrame), | 
| 307             NSMaxY(windowBounds) - | 307             NSMaxY(windowBounds) - | 
| 308                 kFramedWindowButtonsWithTabStripOffsetFromTop); | 308                 kFramedWindowButtonsWithTabStripOffsetFromTop); | 
| 309   EXPECT_EQ(NSMinX(miniaturizeFrame), | 309   EXPECT_EQ(NSMinX(miniaturizeFrame), | 
| 310             NSMaxX(closeBoxFrame) + [window_ windowButtonsInterButtonSpacing]); | 310             NSMaxX(closeBoxFrame) + [window_ windowButtonsInterButtonSpacing]); | 
| 311   [window_ setWindowController:nil]; | 311   [window_ setWindowController:nil]; | 
| 312 } | 312 } | 
| OLD | NEW | 
|---|