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

Side by Side Diff: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm

Issue 1886463003: Remove the Presentation Mode Command ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some 10.6 logic Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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/exclusive_access_controller_views.h" 10 #include "chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h"
(...skipping 10 matching lines...) Expand all
21 #include "ui/base/accelerators/platform_accelerator_cocoa.h" 21 #include "ui/base/accelerators/platform_accelerator_cocoa.h"
22 #import "ui/base/cocoa/controls/hyperlink_text_view.h" 22 #import "ui/base/cocoa/controls/hyperlink_text_view.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/base/l10n/l10n_util_mac.h" 24 #include "ui/base/l10n/l10n_util_mac.h"
25 25
26 using content::SiteInstance; 26 using content::SiteInstance;
27 using content::WebContents; 27 using content::WebContents;
28 28
29 @interface ExclusiveAccessBubbleWindowController (JustForTesting) 29 @interface ExclusiveAccessBubbleWindowController (JustForTesting)
30 // Already defined. 30 // Already defined.
31 + (NSString*)keyCommandString;
32 + (NSString*)keyCombinationForAccelerator: 31 + (NSString*)keyCombinationForAccelerator:
33 (const ui::PlatformAcceleratorCocoa&)item; 32 (const ui::PlatformAcceleratorCocoa&)item;
34 - (void)initializeLabelAndButton; 33 - (void)initializeLabelAndButton;
35 @end 34 @end
36 35
37 @interface ExclusiveAccessBubbleWindowController (ExposedForTesting) 36 @interface ExclusiveAccessBubbleWindowController (ExposedForTesting)
38 - (NSTextField*)exitLabelPlaceholder; 37 - (NSTextField*)exitLabelPlaceholder;
39 - (NSTextView*)exitLabel; 38 - (NSTextView*)exitLabel;
40 - (NSString*)denyButtonText; 39 - (NSString*)denyButtonText;
41 @end 40 @end
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 profile:browser()->profile() 160 profile:browser()->profile()
162 url:GURL() 161 url:GURL()
163 bubbleType: 162 bubbleType:
164 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTON S]); 163 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTON S]);
165 [controller_ initializeLabelAndButton]; 164 [controller_ initializeLabelAndButton];
166 NSString* fullscreen_mouselock_deny_button_text = 165 NSString* fullscreen_mouselock_deny_button_text =
167 [controller_ denyButtonText]; 166 [controller_ denyButtonText];
168 EXPECT_NSEQ(l10n_util::GetNSString(IDS_FULLSCREEN_EXIT), 167 EXPECT_NSEQ(l10n_util::GetNSString(IDS_FULLSCREEN_EXIT),
169 fullscreen_mouselock_deny_button_text); 168 fullscreen_mouselock_deny_button_text);
170 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698