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