15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#include "base/strings/string16.h"
97dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#include "url/gurl.h"
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)class ExtensionService;
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Describes the contents of the fullscreen exit bubble.
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For example, if the user already agreed to fullscreen mode and the
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// web page then requests mouse lock, "do you want to allow mouse lock"
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be shown.
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)enum FullscreenExitBubbleType {
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_NONE = 0,
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  // For tab fullscreen mode.
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  // More comments about tab and browser fullscreen mode can be found in
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  // chrome/browser/ui/fullscreen/fullscreen_controller.h.
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_FULLSCREEN_BUTTONS,
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS,
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_MOUSELOCK_BUTTONS,
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_FULLSCREEN_EXIT_INSTRUCTION,
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION,
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_MOUSELOCK_EXIT_INSTRUCTION,
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  // For browser fullscreen mode.
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION,
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  FEB_TYPE_BROWSER_EXTENSION_FULLSCREEN_EXIT_INSTRUCTION
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)};
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace fullscreen_bubble {
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)base::string16 GetLabelTextForType(FullscreenExitBubbleType type,
385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)                                   const GURL& url,
395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)                                   ExtensionService* extension_service);
405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)base::string16 GetDenyButtonTextForType(FullscreenExitBubbleType type);
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)bool ShowButtonsForType(FullscreenExitBubbleType type);
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void PermissionRequestedByType(FullscreenExitBubbleType type,
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                               bool* tab_fullscreen,
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                               bool* mouse_lock);
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace fullscreen_bubble
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_TYPE_H_
49