OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #import "chrome/browser/browser_window.h" | 13 #import "chrome/browser/browser_window.h" |
14 #import "chrome/browser/ui/cocoa/browser_test_helper.h" | 14 #import "chrome/browser/ui/cocoa/browser_test_helper.h" |
15 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 15 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
16 #import "chrome/browser/ui/cocoa/extension_installed_bubble_controller.h" | 16 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/extension_constants.h" | 19 #include "chrome/common/extensions/extension_constants.h" |
20 #include "webkit/glue/image_decoder.h" | 20 #include "webkit/glue/image_decoder.h" |
21 | 21 |
22 // ExtensionInstalledBubbleController with removePageActionPreview overridden | 22 // ExtensionInstalledBubbleController with removePageActionPreview overridden |
23 // to a no-op, because pageActions are not yet hooked up in the test browser. | 23 // to a no-op, because pageActions are not yet hooked up in the test browser. |
24 @interface ExtensionInstalledBubbleControllerForTest : | 24 @interface ExtensionInstalledBubbleControllerForTest : |
25 ExtensionInstalledBubbleController { | 25 ExtensionInstalledBubbleController { |
26 } | 26 } |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 extension_installed_bubble::kOuterVerticalMargin); | 193 extension_installed_bubble::kOuterVerticalMargin); |
194 NSRect msg1Frame = [controller getExtensionInstalledMsgFrame]; | 194 NSRect msg1Frame = [controller getExtensionInstalledMsgFrame]; |
195 // Top message should start kInnerVerticalMargin pixels above top of | 195 // Top message should start kInnerVerticalMargin pixels above top of |
196 // extensionInstalled message, because page action message is hidden. | 196 // extensionInstalled message, because page action message is hidden. |
197 EXPECT_EQ(msg1Frame.origin.y, | 197 EXPECT_EQ(msg1Frame.origin.y, |
198 msg3Frame.origin.y + msg3Frame.size.height + | 198 msg3Frame.origin.y + msg3Frame.size.height + |
199 extension_installed_bubble::kInnerVerticalMargin); | 199 extension_installed_bubble::kInnerVerticalMargin); |
200 | 200 |
201 [controller close]; | 201 [controller close]; |
202 } | 202 } |
OLD | NEW |