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 "chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.h" |
6 | 6 |
7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 11 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/site_instance.h" | 16 #include "content/public/browser/site_instance.h" |
17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
18 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
19 #include "testing/gtest_mac.h" | 19 #include "testing/gtest_mac.h" |
20 #include "ui/base/accelerators/platform_accelerator_cocoa.h" | 20 #include "ui/base/accelerators/platform_accelerator_cocoa.h" |
| 21 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
21 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/base/l10n/l10n_util_mac.h" | 23 #include "ui/base/l10n/l10n_util_mac.h" |
23 #import "ui/base/cocoa/controls/hyperlink_text_view.h" | |
24 | 24 |
25 using content::SiteInstance; | 25 using content::SiteInstance; |
26 using content::WebContents; | 26 using content::WebContents; |
27 | 27 |
28 @interface ExclusiveAccessBubbleWindowController (JustForTesting) | 28 @interface ExclusiveAccessBubbleWindowController (JustForTesting) |
29 // Already defined. | 29 // Already defined. |
30 + (NSString*)keyCommandString; | 30 + (NSString*)keyCommandString; |
31 + (NSString*)keyCombinationForAccelerator: | 31 + (NSString*)keyCombinationForAccelerator: |
32 (const ui::PlatformAcceleratorCocoa&)item; | 32 (const ui::PlatformAcceleratorCocoa&)item; |
33 - (void)initializeLabelAndButton; | 33 - (void)initializeLabelAndButton; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 profile:browser()->profile() | 160 profile:browser()->profile() |
161 url:GURL() | 161 url:GURL() |
162 bubbleType: | 162 bubbleType: |
163 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTON
S]); | 163 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTON
S]); |
164 [controller_ initializeLabelAndButton]; | 164 [controller_ initializeLabelAndButton]; |
165 NSString* fullscreen_mouselock_deny_button_text = | 165 NSString* fullscreen_mouselock_deny_button_text = |
166 [controller_ denyButtonText]; | 166 [controller_ denyButtonText]; |
167 EXPECT_NSEQ(l10n_util::GetNSString(IDS_FULLSCREEN_EXIT), | 167 EXPECT_NSEQ(l10n_util::GetNSString(IDS_FULLSCREEN_EXIT), |
168 fullscreen_mouselock_deny_button_text); | 168 fullscreen_mouselock_deny_button_text); |
169 } | 169 } |
OLD | NEW |