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

Side by Side 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 unified diff | Download patch
OLDNEW
(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() const 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 // TODO(sriramsr): HACK:
41 bool UseCallbackForMouseLock() override;
42 bool MouseLockCallback(bool acquired) override;
43
44 private:
45 Browser* const browser_;
46
47 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessContextBrowser);
48 };
49
50 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_BROWSER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698