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

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

Issue 2657703002: Swap to foreground tab when following links that open in a new tab/window in VR Shell. (Closed)
Patch Set: Address comments Created 3 years, 11 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_input_manager.h ('k') | chrome/browser/android/vr_shell/vr_shell.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_input_manager.cc
diff --git a/chrome/browser/android/vr_shell/vr_input_manager.cc b/chrome/browser/android/vr_shell/vr_input_manager.cc
index e8ceb40ca4f51631706b59e5cb61ae8a5b82ae9d..efb98cbe86d6238af08d642026b3c08c90efb994 100644
--- a/chrome/browser/android/vr_shell/vr_input_manager.cc
+++ b/chrome/browser/android/vr_shell/vr_input_manager.cc
@@ -30,16 +30,11 @@ WebGestureEvent MakeGestureEvent(WebInputEvent::Type type,
} // namespace
VrInputManager::VrInputManager(content::WebContents* web_contents)
- : web_contents_(web_contents),
- weak_ptr_factory_(this) {
+ : web_contents_(web_contents) {
}
VrInputManager::~VrInputManager() = default;
-base::WeakPtr<VrInputManager> VrInputManager::GetWeakPtr() {
- return weak_ptr_factory_.GetWeakPtr();
-}
-
void VrInputManager::ProcessUpdatedGesture(
std::unique_ptr<blink::WebInputEvent> event) {
if (WebInputEvent::isMouseEventType(event->type())) {
« no previous file with comments | « chrome/browser/android/vr_shell/vr_input_manager.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698