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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_delegate.cc

Issue 2705293002: Chrome VR clang-format cleanup (Closed)
Patch Set: Rebase to ToT. Created 3 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_delegate.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.cc b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
index 3a4e46942bbac967dbaf5b03ab8acdcdde500c27..a25b6a513e19f90feaf80bb77c62485cb3b9d239 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
@@ -31,8 +31,8 @@ VrShellDelegate::~VrShellDelegate() {
}
}
-VrShellDelegate* VrShellDelegate::GetNativeVrShellDelegate(
- JNIEnv* env, jobject jdelegate) {
+VrShellDelegate* VrShellDelegate::GetNativeVrShellDelegate(JNIEnv* env,
+ jobject jdelegate) {
return reinterpret_cast<VrShellDelegate*>(
Java_VrShellDelegate_getNativePointer(env, jdelegate));
}
@@ -65,7 +65,7 @@ void VrShellDelegate::SetDelegate(device::GvrDelegate* delegate,
void VrShellDelegate::RemoveDelegate() {
delegate_ = nullptr;
device::GamepadDataFetcherManager::GetInstance()->RemoveSourceFactory(
- device::GAMEPAD_SOURCE_GVR);
+ device::GAMEPAD_SOURCE_GVR);
if (device_provider_) {
CreateNonPresentingDelegate();
device_provider_->Device()->OnDelegateChanged();
@@ -95,8 +95,7 @@ void VrShellDelegate::UpdateVSyncInterval(JNIEnv* env,
timebase_nanos_ = timebase_nanos;
interval_seconds_ = interval_seconds;
if (delegate_) {
- delegate_->UpdateVSyncInterval(timebase_nanos_,
- interval_seconds_);
+ delegate_->UpdateVSyncInterval(timebase_nanos_, interval_seconds_);
}
if (non_presenting_delegate_) {
non_presenting_delegate_->UpdateVSyncInterval(timebase_nanos_,
@@ -104,15 +103,13 @@ void VrShellDelegate::UpdateVSyncInterval(JNIEnv* env,
}
}
-void VrShellDelegate::OnPause(JNIEnv* env,
- const JavaParamRef<jobject>& obj) {
+void VrShellDelegate::OnPause(JNIEnv* env, const JavaParamRef<jobject>& obj) {
if (non_presenting_delegate_) {
non_presenting_delegate_->Pause();
}
}
-void VrShellDelegate::OnResume(JNIEnv* env,
- const JavaParamRef<jobject>& obj) {
+void VrShellDelegate::OnResume(JNIEnv* env, const JavaParamRef<jobject>& obj) {
if (non_presenting_delegate_) {
non_presenting_delegate_->Resume();
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698