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

Unified 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: Fix mac build breaks 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/fullscreen/exclusive_access_bubble_type.h
diff --git a/chrome/browser/ui/fullscreen/exclusive_access_bubble_type.h b/chrome/browser/ui/fullscreen/exclusive_access_bubble_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..defe32c4b7a2d0086fa0a9e33d0df44cf228c14a
--- /dev/null
+++ b/chrome/browser/ui/fullscreen/exclusive_access_bubble_type.h
@@ -0,0 +1,50 @@
+// 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.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
+#define CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_
+
+#include "base/strings/string16.h"
+#include "url/gurl.h"
+
+namespace extensions {
+class ExtensionRegistry;
+}
+
+// Describes the contents of the fullscreen exit bubble.
+// For example, if the user already agreed to fullscreen mode and the
+// web page then requests mouse lock, "do you want to allow mouse lock"
+// will be shown.
+enum ExclusiveAccessBubbleType {
+ EAB_TYPE_NONE = 0,
+
+ // For tab fullscreen mode.
+ // More comments about tab and browser fullscreen mode can be found in
+ // chrome/browser/ui/fullscreen/fullscreen_controller.h.
+ EAB_TYPE_FULLSCREEN_BUTTONS,
+ EAB_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS,
+ EAB_TYPE_MOUSELOCK_BUTTONS,
+ EAB_TYPE_FULLSCREEN_EXIT_INSTRUCTION,
+ EAB_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION,
+ EAB_TYPE_MOUSELOCK_EXIT_INSTRUCTION,
+
+ // For browser fullscreen mode.
+ EAB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION,
+ EAB_TYPE_BROWSER_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION
+};
+
+namespace exclusive_access_bubble {
+
+base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type,
+ const GURL& url,
+ extensions::ExtensionRegistry* registry);
+base::string16 GetDenyButtonTextForType(ExclusiveAccessBubbleType type);
+bool ShowButtonsForType(ExclusiveAccessBubbleType type);
+void PermissionRequestedByType(ExclusiveAccessBubbleType type,
+ bool* tab_fullscreen,
+ bool* mouse_lock);
+
+} // namespace exclusive_access_bubble
+
+#endif // CHROME_BROWSER_UI_FULLSCREEN_EXCLUSIVE_ACCESS_BUBBLE_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698