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

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

Issue 2551983002: Suffix VrShell calls with which thread they're expected to be run on. (Closed)
Patch Set: Rebase Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/android/vr_shell/vr_web_contents_observer.h" 5 #include "chrome/browser/android/vr_shell/vr_web_contents_observer.h"
6 6
7 #include "chrome/browser/android/vr_shell/ui_interface.h" 7 #include "chrome/browser/android/vr_shell/ui_interface.h"
8 #include "chrome/browser/android/vr_shell/vr_shell.h" 8 #include "chrome/browser/android/vr_shell/vr_shell.h"
9 #include "content/public/browser/navigation_handle.h" 9 #include "content/public/browser/navigation_handle.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 content::NavigationHandle* navigation_handle) { 45 content::NavigationHandle* navigation_handle) {
46 ui_interface_->SetURL(navigation_handle->GetURL()); 46 ui_interface_->SetURL(navigation_handle->GetURL());
47 } 47 }
48 48
49 void VrWebContentsObserver::DidToggleFullscreenModeForTab( 49 void VrWebContentsObserver::DidToggleFullscreenModeForTab(
50 bool entered_fullscreen, bool will_cause_resize) { 50 bool entered_fullscreen, bool will_cause_resize) {
51 ui_interface_->SetFullscreen(entered_fullscreen); 51 ui_interface_->SetFullscreen(entered_fullscreen);
52 } 52 }
53 53
54 void VrWebContentsObserver::WebContentsDestroyed() { 54 void VrWebContentsObserver::WebContentsDestroyed() {
55 vr_shell_->ContentWebContentsDestroyed(); 55 vr_shell_->ContentWebContentsDestroyedOnUI();
56 } 56 }
57 57
58 void VrWebContentsObserver::WasHidden() { 58 void VrWebContentsObserver::WasHidden() {
59 vr_shell_->ContentWasHidden(); 59 vr_shell_->ContentWasHiddenOnUI();
60 } 60 }
61 61
62 } // namespace vr_shell 62 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698