OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
miu
2014/12/11 23:10:50
nit: Consider re-uploading with --similarity=10 to
sky
2014/12/12 00:00:37
Yes please.
Sriram
2014/12/12 21:56:39
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ | |
6 #define CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ | |
7 | |
8 #include "base/strings/string16.h" | |
9 #include "url/gurl.h" | |
10 | |
11 namespace extensions { | |
12 class ExtensionRegistry; | |
13 } | |
14 | |
15 // Describes the contents of the fullscreen exit bubble. | |
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" | |
18 // will be shown. | |
19 enum ExclusiveAccessBubbleType { | |
20 EAB_TYPE_NONE = 0, | |
21 | |
22 // For tab fullscreen mode. | |
23 // More comments about tab and browser fullscreen mode can be found in | |
24 // chrome/browser/ui/fullscreen/fullscreen_controller.h. | |
25 EAB_TYPE_FULLSCREEN_BUTTONS, | |
26 EAB_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS, | |
27 EAB_TYPE_MOUSELOCK_BUTTONS, | |
28 EAB_TYPE_FULLSCREEN_EXIT_INSTRUCTION, | |
29 EAB_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION, | |
30 EAB_TYPE_MOUSELOCK_EXIT_INSTRUCTION, | |
31 | |
32 // For browser fullscreen mode. | |
33 EAB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION, | |
34 EAB_TYPE_BROWSER_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION | |
35 }; | |
36 | |
37 namespace exclusive_access_bubble { | |
38 | |
39 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type, | |
40 const GURL& url, | |
41 extensions::ExtensionRegistry* registry); | |
42 base::string16 GetDenyButtonTextForType(ExclusiveAccessBubbleType type); | |
43 bool ShowButtonsForType(ExclusiveAccessBubbleType type); | |
44 void PermissionRequestedByType(ExclusiveAccessBubbleType type, | |
45 bool* tab_fullscreen, | |
46 bool* mouse_lock); | |
47 | |
48 } // namespace exclusive_access_bubble | |
49 | |
50 #endif // CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_ | |
OLD | NEW |