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

Unified Diff: chrome/browser/android/vr_shell/vr_tab_helper.h

Issue 2975593002: [vr] Deny permission requests in VR mode
Patch Set: . Created 3 years, 5 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_tab_helper.h
diff --git a/chrome/browser/android/vr_shell/vr_tab_helper.h b/chrome/browser/android/vr_shell/vr_tab_helper.h
deleted file mode 100644
index 315ce623a5fe5b3e742173912c81e9cfb5313c9f..0000000000000000000000000000000000000000
--- a/chrome/browser/android/vr_shell/vr_tab_helper.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2017 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_ANDROID_VR_SHELL_VR_TAB_HELPER_H_
-#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_TAB_HELPER_H_
-
-#include "base/macros.h"
-#include "content/public/browser/web_contents_user_data.h"
-
-namespace vr_shell {
-
-class VrTabHelper : public content::WebContentsUserData<VrTabHelper> {
- public:
- ~VrTabHelper() override;
-
- bool is_in_vr() const { return is_in_vr_; }
-
- // Called by VrShell when we enter and exit vr mode. It finds us by looking us
- // up on the WebContents.
- void SetIsInVr(bool is_in_vr);
-
- static bool IsInVr(content::WebContents* contents);
-
- private:
- explicit VrTabHelper(content::WebContents* contents);
-
- friend class content::WebContentsUserData<VrTabHelper>;
-
- content::WebContents* web_contents_;
- bool is_in_vr_ = false;
-
- DISALLOW_COPY_AND_ASSIGN(VrTabHelper);
-};
-
-} // namespace vr_shell
-
-#endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_TAB_HELPER_H_
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698