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

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

Issue 944123003: Hack webapp to request keyboard events on connection. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hacked up chromoting client and using mouse lock instead of keyboard lock for bubble. Created 5 years, 10 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
5 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
6
7 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
8
9 class GURL;
10 class Profile;
11
12 namespace content {
13 class WebContents;
14 }
15
16 // Context in which exclusive access operation is being performed. This
17 // interface is implemented once in Browser context and in Platform Application
18 // context.
19 class ExclusiveAccessContext {
20 public:
21 virtual ~ExclusiveAccessContext() {}
22
23 // Returns the current profile associated with the window.
24 virtual Profile* GetProfile() = 0;
25
26 // Returns true if the window hosting the exclusive access bubble is
27 // fullscreen.
28 virtual bool IsFullscreen() const = 0;
29
30 // Returns true if the window host the exclusive access bubble is fullscreen.
31 virtual bool IsFullscreenWithToolbar() = 0;
32
33 // Returns true if fullscreen with toolbar is supported.
34 virtual bool SupportsFullscreenWithToolbar() = 0;
35
36 // Methods that change fullscreen state.
37 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true,
38 // |with_toolbar| is ignored on other platforms.
39 virtual void EnterFullscreen(const GURL& url,
40 ExclusiveAccessBubbleType bubble_type,
41 bool with_toolbar) = 0;
42 virtual void ExitFullscreen() = 0;
43 // Updates the content of exclusive access exit bubble content.
44 virtual void UpdateExclusiveAccessExitBubbleContent(
45 GURL url,
46 ExclusiveAccessBubbleType bubble_type) = 0;
47
48 // Returns the currently active WebContents, or nullptr if there is none.
49 virtual content::WebContents* GetActiveWebContents() = 0;
50
51 // Shows or hides the tab strip, toolbar and bookmark bar with in browser
52 // fullscreen.
53 // Currently only supported on Mac.
54 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0;
55
56 // Sets state for entering or exiting Win8 Metro snap mode.
57 virtual void SetMetroSnapMode(bool enable) = 0;
58
59 // Returns whether the window is currently in Win8 Metro snap mode.
60 virtual bool IsInMetroSnapMode() = 0;
61
62 // Shows or hides download shelf associated with currently active window.
63 virtual void UpdateDownloadShelf(bool unhide) = 0;
64
65 // TODO(sriramsr): HACK
66 virtual bool UseCallbackForMouseLock() = 0;
67 virtual bool MouseLockCallback(bool acquired) = 0;
68 };
69
70 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698