Index: chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h |
diff --git a/chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h b/chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..803461a269f0745303ced5a70730cf66499440f9 |
--- /dev/null |
+++ b/chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h |
@@ -0,0 +1,50 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+#ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H_ |
+#define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H_ |
+ |
+#include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
+#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
+ |
+class Browser; |
+class GURL; |
+ |
+// Implements ExclusiveAccessContext interface to be used in browser context. |
+class ExclusiveAccessContextBrowser : public ExclusiveAccessContext { |
+ public: |
+ explicit ExclusiveAccessContextBrowser(Browser* browser); |
+ ~ExclusiveAccessContextBrowser() override; |
+ |
+ // ExclusiveAccessContext |
+ Profile* GetProfile() override; |
+ bool IsFullscreen() const override; |
+ bool IsFullscreenWithToolbar() override; |
+ bool SupportsFullscreenWithToolbar() override; |
+ void EnterFullscreen(const GURL& url, |
+ ExclusiveAccessBubbleType bubble_type, |
+ bool with_toolbar) override; |
+ void ExitFullscreen() override; |
+ void UpdateExclusiveAccessExitBubbleContent( |
+ GURL url, |
+ ExclusiveAccessBubbleType bubble_type) override; |
+ content::WebContents* GetActiveWebContents() override; |
+ void UpdateFullscreenWithToolbar(bool with_toolbar) override; |
+ |
+ // These two functions are NOOP except in OS_WIN. |
+ void SetMetroSnapMode(bool enable) override; |
+ bool IsInMetroSnapMode() override; |
+ |
+ void UpdateDownloadShelf(bool unhide) override; |
+ |
+ // TODO(sriramsr): HACK: |
+ bool UseCallbackForMouseLock() override; |
+ bool MouseLockCallback(bool acquired) override; |
+ |
+ private: |
+ Browser* const browser_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessContextBrowser); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H_ |