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

Unified Diff: chrome/browser/ui/exclusive_access/exclusive_access_context_browser.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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698