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

Side by Side Diff: chrome/browser/android/vr_shell/vr_tab_helper.cc

Issue 2876023002: Use VrTabHelper to disable popups
Patch Set: Created 3 years, 7 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_tab_helper.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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
5 #include "chrome/browser/android/vr_shell/vr_tab_helper.h"
6
7 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h"
8 #include "device/vr/android/gvr/gvr_delegate_provider.h"
9
10 DEFINE_WEB_CONTENTS_USER_DATA_KEY(vr_shell::VrTabHelper);
11
12 namespace vr_shell {
13
14 VrTabHelper::VrTabHelper(content::WebContents* contents)
15 : content::WebContentsObserver(contents) {}
16 VrTabHelper::~VrTabHelper() {}
17
18 bool VrTabHelper::HandleJavaScriptDialog() {
19 return is_in_vr_;
20 }
21
22 bool VrTabHelper::HandleMediaPermission() {
23 return is_in_vr_;
24 }
25
26 bool VrTabHelper::HandleFileChooser() {
27 return is_in_vr_;
28 }
29
30 bool VrTabHelper::HandleBluetoothChooser() {
31 return is_in_vr_;
32 }
33
34 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_tab_helper.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698