OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 4 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
5 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 5 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
6 | 6 |
7 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 7 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
8 | 8 |
9 class GURL; | 9 class GURL; |
10 class Profile; | 10 class Profile; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 // Context in which exclusive access operation is being performed. This | 16 // Context in which exclusive access operation is being performed. This |
17 // interface is implemented once in Browser context and in Platform Application | 17 // interface is implemented once in Browser context and in Platform Application |
18 // context. | 18 // context. |
19 class ExclusiveAccessContext { | 19 class ExclusiveAccessContext { |
20 public: | 20 public: |
21 virtual ~ExclusiveAccessContext() {} | 21 virtual ~ExclusiveAccessContext() {} |
22 | 22 |
23 // Returns the current profile associated with the window. | 23 // Returns the current profile associated with the window. |
24 virtual Profile* GetProfile() = 0; | 24 virtual Profile* GetProfile() = 0; |
25 | 25 |
26 // Returns true if the window hosting the exclusive access bubble is | 26 // Returns true if the window hosting the exclusive access bubble is |
27 // fullscreen. | 27 // fullscreen. |
28 virtual bool IsFullscreen() = 0; | 28 virtual bool IsFullscreen() const = 0; |
29 | 29 |
30 // Returns true if the window host the exclusive access bubble is fullscreen. | 30 // Returns true if the window host the exclusive access bubble is fullscreen. |
31 virtual bool IsFullscreenWithToolbar() = 0; | 31 virtual bool IsFullscreenWithToolbar() = 0; |
32 | 32 |
33 // Returns true if fullscreen with toolbar is supported. | 33 // Returns true if fullscreen with toolbar is supported. |
34 virtual bool SupportsFullscreenWithToolbar() = 0; | 34 virtual bool SupportsFullscreenWithToolbar() = 0; |
35 | 35 |
36 // Methods that change fullscreen state. | 36 // Methods that change fullscreen state. |
37 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 37 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, |
38 // |with_toolbar| is ignored on other platforms. | 38 // |with_toolbar| is ignored on other platforms. |
(...skipping 15 matching lines...) Expand all Loading... |
54 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; | 54 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; |
55 | 55 |
56 // Sets state for entering or exiting Win8 Metro snap mode. | 56 // Sets state for entering or exiting Win8 Metro snap mode. |
57 virtual void SetMetroSnapMode(bool enable) = 0; | 57 virtual void SetMetroSnapMode(bool enable) = 0; |
58 | 58 |
59 // Returns whether the window is currently in Win8 Metro snap mode. | 59 // Returns whether the window is currently in Win8 Metro snap mode. |
60 virtual bool IsInMetroSnapMode() = 0; | 60 virtual bool IsInMetroSnapMode() = 0; |
61 | 61 |
62 // Shows or hides download shelf associated with currently active window. | 62 // Shows or hides download shelf associated with currently active window. |
63 virtual void UpdateDownloadShelf(bool unhide) = 0; | 63 virtual void UpdateDownloadShelf(bool unhide) = 0; |
| 64 |
| 65 // TODO(sriramsr): HACK |
| 66 virtual bool UseCallbackForMouseLock() = 0; |
| 67 virtual bool MouseLockCallback(bool acquired) = 0; |
64 }; | 68 }; |
65 | 69 |
66 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 70 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
OLD | NEW |