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

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

Issue 789403002: Rename fullscreen_exit_bubble_* to exclusive_access_bubble_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on CR comments Created 6 years 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_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_ 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_ 6 #define CHROME_BROWSER_UI_FULLSCREEN_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 FullscreenExitBubbleType { 19 enum ExclusiveAccessBubbleType {
20 FEB_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/fullscreen/fullscreen_controller.h. 24 // chrome/browser/ui/fullscreen/fullscreen_controller.h.
25 FEB_TYPE_FULLSCREEN_BUTTONS, 25 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_BUTTONS,
26 FEB_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS, 26 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS,
27 FEB_TYPE_MOUSELOCK_BUTTONS, 27 EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS,
28 FEB_TYPE_FULLSCREEN_EXIT_INSTRUCTION, 28 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_EXIT_INSTRUCTION,
29 FEB_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION, 29 EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION,
30 FEB_TYPE_MOUSELOCK_EXIT_INSTRUCTION, 30 EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_EXIT_INSTRUCTION,
31 31
32 // For browser fullscreen mode. 32 // For browser fullscreen mode.
33 FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION, 33 EXCLUSIVE_ACCESS_BUBBLE_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION,
34 FEB_TYPE_BROWSER_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION 34 EXCLUSIVE_ACCESS_BUBBLE_TYPE_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION
35 }; 35 };
36 36
37 namespace fullscreen_bubble { 37 namespace exclusive_access_bubble {
38 38
39 base::string16 GetLabelTextForType(FullscreenExitBubbleType type, 39 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type,
40 const GURL& url, 40 const GURL& url,
41 extensions::ExtensionRegistry* registry); 41 extensions::ExtensionRegistry* registry);
42 base::string16 GetDenyButtonTextForType(FullscreenExitBubbleType type); 42 base::string16 GetDenyButtonTextForType(ExclusiveAccessBubbleType type);
43 bool ShowButtonsForType(FullscreenExitBubbleType type); 43 bool ShowButtonsForType(ExclusiveAccessBubbleType type);
44 void PermissionRequestedByType(FullscreenExitBubbleType type, 44 void PermissionRequestedByType(ExclusiveAccessBubbleType type,
45 bool* tab_fullscreen, 45 bool* tab_fullscreen,
46 bool* mouse_lock); 46 bool* mouse_lock);
47 47
48 } // namespace fullscreen_bubble 48 } // namespace exclusive_access_bubble
49 49
50 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_ 50 #endif // CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/fullscreen/exclusive_access_bubble.cc ('k') | chrome/browser/ui/fullscreen/exclusive_access_bubble_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698