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

Unified Diff: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm

Issue 856253002: Bug fix for the pointer lock string problem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert the xib file (switch back "Allow" and "Deny" button position), and fix one style problem Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
index d6c0de1689d19206affeb70769be10d861a2380a..f319662dd98d26dedf496ee3dc35d98efc4a46c3 100644
--- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
+++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
@@ -258,6 +258,17 @@ const float kHideDuration = 0.7;
labelFrame.origin.x += NSWidth(labelFrame) - NSWidth(textFrame);
labelFrame.size = textFrame.size;
[exitLabel_ setFrame:labelFrame];
+
+ // Update the title of denyButton_ according to the current bubbleType_
+ if (bubbleType_ == EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_BUTTONS ||
Mark Mentovai 2015/01/27 21:32:16 Call exclusive_access_bubble::ShowButtonsForType()
Jialiu Lin 2015/01/28 02:47:09 Done.
+ bubbleType_ ==
+ EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS ||
+ bubbleType_ == EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS) {
+ NSString* denyButtonText =
+ SysUTF16ToNSString(
+ exclusive_access_bubble::GetDenyButtonTextForType(bubbleType_));
Mark Mentovai 2015/01/27 21:32:16 Since you’re now always populating the deny button
Jialiu Lin 2015/01/28 02:47:09 Done.
+ [denyButton_ setTitle:denyButtonText];
+ }
Mark Mentovai 2015/01/27 21:32:16 Perhaps the showButtons:NO call should be here in
Jialiu Lin 2015/01/28 02:47:08 Added the else clause, and changed the function na
}
- (NSString*)getLabelText {
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698