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

Side by Side Diff: chrome/browser/ui/exclusive_access/exclusive_access_bubble.h

Issue 1421813005: Fullscreen bubble: Draw a white box around "ESC" in "Press ESC to exit". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@border-roundedrect
Patch Set: Created 5 years, 1 month 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 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void Accept(); 83 void Accept();
84 // Denys the request. Can cause FullscreenExitBubble to be deleted. 84 // Denys the request. Can cause FullscreenExitBubble to be deleted.
85 void Cancel(); 85 void Cancel();
86 86
87 // The following strings may change according to the content type and URL. 87 // The following strings may change according to the content type and URL.
88 base::string16 GetCurrentMessageText() const; 88 base::string16 GetCurrentMessageText() const;
89 base::string16 GetCurrentDenyButtonText() const; 89 base::string16 GetCurrentDenyButtonText() const;
90 base::string16 GetCurrentAllowButtonText() const; 90 base::string16 GetCurrentAllowButtonText() const;
91 91
92 // The following strings never change. 92 // The following strings never change.
93 // This string *may* contain the name of the key surrounded in pipe characters
msw 2015/10/29 17:50:02 Instead of using pipe characters, consider using t
Matt Giuca 2015/11/09 06:35:12 The bars came about because Evan raised a concern
94 // ('|'), which should be drawn graphically as a key, not displayed literally.
93 base::string16 GetInstructionText() const; 95 base::string16 GetInstructionText() const;
94 96
95 // The Manager associated with this bubble. 97 // The Manager associated with this bubble.
96 ExclusiveAccessManager* const manager_; 98 ExclusiveAccessManager* const manager_;
97 99
98 // The host the bubble is for, can be empty. 100 // The host the bubble is for, can be empty.
99 GURL url_; 101 GURL url_;
100 102
101 // The type of the bubble; controls e.g. which buttons to show. 103 // The type of the bubble; controls e.g. which buttons to show.
102 ExclusiveAccessBubbleType bubble_type_; 104 ExclusiveAccessBubbleType bubble_type_;
(...skipping 24 matching lines...) Expand all
127 base::RepeatingTimer mouse_position_checker_; 129 base::RepeatingTimer mouse_position_checker_;
128 130
129 // The most recently seen mouse position, in screen coordinates. Used to see 131 // The most recently seen mouse position, in screen coordinates. Used to see
130 // if the mouse has moved since our last check. 132 // if the mouse has moved since our last check.
131 gfx::Point last_mouse_pos_; 133 gfx::Point last_mouse_pos_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble); 135 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubble);
134 }; 136 };
135 137
136 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_ 138 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698