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

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

Issue 2004353002: Delete unused code for exclusive access permission prompting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen-mac-remove-window-controller
Patch Set: Remove changes to content settings UI (spun out to CL 2045163002). Created 4 years, 6 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 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 class ExtensionRegistry; 12 class ExtensionRegistry;
13 } 13 }
14 14
15 // Describes the contents of the fullscreen exit bubble. 15 // Describes the contents of the fullscreen exit bubble.
16 // For example, if the user already agreed to fullscreen mode and the 16 // For example, if the user already agreed to fullscreen mode and the
17 // web page then requests mouse lock, "do you want to allow mouse lock" 17 // web page then requests mouse lock, "do you want to allow mouse lock"
18 // will be shown. 18 // will be shown.
19 enum ExclusiveAccessBubbleType { 19 enum ExclusiveAccessBubbleType {
20 EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE = 0, 20 EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE = 0,
21 21
22 // For tab fullscreen mode. 22 // For tab fullscreen mode.
23 // More comments about tab and browser fullscreen mode can be found in 23 // More comments about tab and browser fullscreen mode can be found in
24 // chrome/browser/ui/exclusive_access/fullscreen_controller.h. 24 // chrome/browser/ui/exclusive_access/fullscreen_controller.h.
25 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_BUTTONS,
26 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS,
27 EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS,
28 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_EXIT_INSTRUCTION, 25 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_EXIT_INSTRUCTION,
29 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION, 26 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION,
30 EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_EXIT_INSTRUCTION, 27 EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_EXIT_INSTRUCTION,
31 EXCLUSIVE_ACCESS_BUBBLE_TYPE_KEYBOARD_LOCK_EXIT_INSTRUCTION, 28 EXCLUSIVE_ACCESS_BUBBLE_TYPE_KEYBOARD_LOCK_EXIT_INSTRUCTION,
32 29
33 // For browser fullscreen mode. 30 // For browser fullscreen mode.
34 EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION, 31 EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION,
35 EXCLUSIVE_ACCESS_BUBBLE_TYPE_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION 32 EXCLUSIVE_ACCESS_BUBBLE_TYPE_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION
36 }; 33 };
37 34
38 namespace exclusive_access_bubble { 35 namespace exclusive_access_bubble {
39 36
40 // Gets the text informing the user what state they have entered. 37 // Gets the text informing the user what state they have entered.
41 // DEPRECATED: This is used only by the "classic" exclusive access bubble. The 38 // DEPRECATED: This is used only by the "classic" exclusive access bubble. The
42 // new bubble only shows the instruction text. 39 // new bubble only shows the instruction text.
43 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type, 40 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type,
44 const GURL& url, 41 const GURL& url,
45 extensions::ExtensionRegistry* registry); 42 extensions::ExtensionRegistry* registry);
46 // Gets the text for the deny and allow buttons. 43 // Gets the text for the deny and allow buttons.
47 // DEPRECATED: This is used only by the "classic" exclusive access bubble. The 44 // DEPRECATED: This is used only by the "classic" exclusive access bubble. The
48 // new bubble only shows the instruction text. 45 // new bubble only shows the instruction text.
49 base::string16 GetDenyButtonTextForType(ExclusiveAccessBubbleType type); 46 base::string16 GetDenyButtonTextForType(ExclusiveAccessBubbleType type);
50 base::string16 GetAllowButtonTextForType(ExclusiveAccessBubbleType type, 47 base::string16 GetAllowButtonTextForType(ExclusiveAccessBubbleType type,
51 const GURL& url); 48 const GURL& url);
52 // Gets the text instructing the user how to exit an exclusive access mode. 49 // Gets the text instructing the user how to exit an exclusive access mode.
53 // |accelerator| is the name of the key to exit fullscreen mode. 50 // |accelerator| is the name of the key to exit fullscreen mode.
54 base::string16 GetInstructionTextForType(ExclusiveAccessBubbleType type, 51 base::string16 GetInstructionTextForType(ExclusiveAccessBubbleType type,
55 const base::string16& accelerator); 52 const base::string16& accelerator);
56 bool ShowButtonsForType(ExclusiveAccessBubbleType type);
57 void PermissionRequestedByType(ExclusiveAccessBubbleType type,
58 bool* tab_fullscreen,
59 bool* mouse_lock);
60 53
61 } // namespace exclusive_access_bubble 54 } // namespace exclusive_access_bubble
62 55
63 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ 56 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698