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_BROWSER_H_ | 4 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H_ |
5 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H_ | 5 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_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 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 8 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
9 | 9 |
10 class Browser; | 10 class Browser; |
11 class GURL; | 11 class GURL; |
12 | 12 |
13 // Implements ExclusiveAccessContext interface to be used in browser context. | 13 // Implements ExclusiveAccessContext interface to be used in browser context. |
14 class ExclusiveAccessContextBrowser : public ExclusiveAccessContext { | 14 class ExclusiveAccessContextBrowser : public ExclusiveAccessContext { |
15 public: | 15 public: |
16 explicit ExclusiveAccessContextBrowser(Browser* browser); | 16 explicit ExclusiveAccessContextBrowser(Browser* browser); |
17 ~ExclusiveAccessContextBrowser() override; | 17 ~ExclusiveAccessContextBrowser() override; |
18 | 18 |
19 // ExclusiveAccessContext | 19 // ExclusiveAccessContext |
20 Profile* GetProfile() override; | 20 Profile* GetProfile() override; |
21 bool IsFullscreen() override; | 21 bool IsFullscreen() const override; |
22 bool IsFullscreenWithToolbar() override; | 22 bool IsFullscreenWithToolbar() override; |
23 bool SupportsFullscreenWithToolbar() override; | 23 bool SupportsFullscreenWithToolbar() override; |
24 void EnterFullscreen(const GURL& url, | 24 void EnterFullscreen(const GURL& url, |
25 ExclusiveAccessBubbleType bubble_type, | 25 ExclusiveAccessBubbleType bubble_type, |
26 bool with_toolbar) override; | 26 bool with_toolbar) override; |
27 void ExitFullscreen() override; | 27 void ExitFullscreen() override; |
28 void UpdateExclusiveAccessExitBubbleContent( | 28 void UpdateExclusiveAccessExitBubbleContent( |
29 GURL url, | 29 GURL url, |
30 ExclusiveAccessBubbleType bubble_type) override; | 30 ExclusiveAccessBubbleType bubble_type) override; |
31 content::WebContents* GetActiveWebContents() override; | 31 content::WebContents* GetActiveWebContents() override; |
32 void UpdateFullscreenWithToolbar(bool with_toolbar) override; | 32 void UpdateFullscreenWithToolbar(bool with_toolbar) override; |
33 | 33 |
34 // These two functions are NOOP except in OS_WIN. | 34 // These two functions are NOOP except in OS_WIN. |
35 void SetMetroSnapMode(bool enable) override; | 35 void SetMetroSnapMode(bool enable) override; |
36 bool IsInMetroSnapMode() override; | 36 bool IsInMetroSnapMode() override; |
37 | 37 |
38 void UpdateDownloadShelf(bool unhide) override; | 38 void UpdateDownloadShelf(bool unhide) override; |
39 | 39 |
| 40 // TODO(sriramsr): HACK: |
| 41 bool UseCallbackForMouseLock() override; |
| 42 bool MouseLockCallback(bool acquired) override; |
| 43 |
40 private: | 44 private: |
41 Browser* const browser_; | 45 Browser* const browser_; |
42 | 46 |
43 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessContextBrowser); | 47 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessContextBrowser); |
44 }; | 48 }; |
45 | 49 |
46 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H
_ | 50 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H
_ |
OLD | NEW |