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

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 2874623004: [vr] Introduce VrTabHelper (Closed)
Patch Set: nogncheck (thanks sadrul@, sky@)! 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/ui/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "extensions/features/features.h" 71 #include "extensions/features/features.h"
72 #include "printing/features/features.h" 72 #include "printing/features/features.h"
73 73
74 #if defined(OS_ANDROID) 74 #if defined(OS_ANDROID)
75 #include "chrome/browser/android/banners/app_banner_manager_android.h" 75 #include "chrome/browser/android/banners/app_banner_manager_android.h"
76 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" 76 #include "chrome/browser/android/data_usage/data_use_tab_helper.h"
77 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" 77 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h"
78 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" 78 #include "chrome/browser/android/offline_pages/recent_tab_helper.h"
79 #include "chrome/browser/android/search_geolocation/search_geolocation_disclosur e_tab_helper.h" 79 #include "chrome/browser/android/search_geolocation/search_geolocation_disclosur e_tab_helper.h"
80 #include "chrome/browser/android/voice_search_tab_helper.h" 80 #include "chrome/browser/android/voice_search_tab_helper.h"
81
82 #include "device/vr/features/features.h" // nogncheck
83 #if BUILDFLAG(ENABLE_VR)
84 #include "chrome/browser/android/vr_shell/vr_tab_helper.h"
85 #endif // BUILDFLAG(ENABLE_VR)
86
81 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" 87 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h"
82 #include "chrome/browser/ui/android/context_menu_helper.h" 88 #include "chrome/browser/ui/android/context_menu_helper.h"
83 #include "chrome/browser/ui/android/view_android_helper.h" 89 #include "chrome/browser/ui/android/view_android_helper.h"
84 #else 90 #else
85 #include "chrome/browser/banners/app_banner_manager_desktop.h" 91 #include "chrome/browser/banners/app_banner_manager_desktop.h"
86 #include "chrome/browser/plugins/plugin_observer.h" 92 #include "chrome/browser/plugins/plugin_observer.h"
87 #include "chrome/browser/safe_browsing/safe_browsing_navigation_observer.h" 93 #include "chrome/browser/safe_browsing/safe_browsing_navigation_observer.h"
88 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 94 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
89 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 95 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
90 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 96 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ContextMenuHelper::CreateForWebContents(web_contents); 230 ContextMenuHelper::CreateForWebContents(web_contents);
225 DataUseTabHelper::CreateForWebContents(web_contents); 231 DataUseTabHelper::CreateForWebContents(web_contents);
226 232
227 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents); 233 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents);
228 offline_pages::RecentTabHelper::CreateForWebContents(web_contents); 234 offline_pages::RecentTabHelper::CreateForWebContents(web_contents);
229 235
230 SearchGeolocationDisclosureTabHelper::CreateForWebContents(web_contents); 236 SearchGeolocationDisclosureTabHelper::CreateForWebContents(web_contents);
231 SingleTabModeTabHelper::CreateForWebContents(web_contents); 237 SingleTabModeTabHelper::CreateForWebContents(web_contents);
232 ViewAndroidHelper::CreateForWebContents(web_contents); 238 ViewAndroidHelper::CreateForWebContents(web_contents);
233 VoiceSearchTabHelper::CreateForWebContents(web_contents); 239 VoiceSearchTabHelper::CreateForWebContents(web_contents);
240
241 #if BUILDFLAG(ENABLE_VR)
242 vr_shell::VrTabHelper::CreateForWebContents(web_contents);
243 #endif
244
234 #else 245 #else
235 BookmarkTabHelper::CreateForWebContents(web_contents); 246 BookmarkTabHelper::CreateForWebContents(web_contents);
236 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( 247 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents(
237 web_contents); 248 web_contents);
238 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); 249 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents);
239 HungPluginTabHelper::CreateForWebContents(web_contents); 250 HungPluginTabHelper::CreateForWebContents(web_contents);
240 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); 251 JavaScriptDialogTabHelper::CreateForWebContents(web_contents);
241 ManagePasswordsUIController::CreateForWebContents(web_contents); 252 ManagePasswordsUIController::CreateForWebContents(web_contents);
242 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( 253 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
243 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( 254 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>(
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 307 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
297 web_contents); 308 web_contents);
298 } 309 }
299 310
300 if (tracing::NavigationTracingObserver::IsEnabled()) 311 if (tracing::NavigationTracingObserver::IsEnabled())
301 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 312 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
302 313
303 if (MediaEngagementService::IsEnabled()) 314 if (MediaEngagementService::IsEnabled())
304 MediaEngagementService::CreateWebContentsObserver(web_contents); 315 MediaEngagementService::CreateWebContentsObserver(web_contents);
305 } 316 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698