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

Side by Side Diff: device/vr/android/gvr/gvr_gamepad_data_fetcher.h

Issue 2513143002: Fixed crash when exiting page using GVR controller w/ the gamepad API (Closed)
Patch Set: Created 4 years, 1 month 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 #ifndef DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ 5 #ifndef DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_
6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ 6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 24 matching lines...) Expand all
35 ~GvrGamepadDataFetcher() override; 35 ~GvrGamepadDataFetcher() override;
36 36
37 GamepadSource source() override; 37 GamepadSource source() override;
38 38
39 void GetGamepadData(bool devices_changed_hint) override; 39 void GetGamepadData(bool devices_changed_hint) override;
40 void PauseHint(bool paused) override; 40 void PauseHint(bool paused) override;
41 void OnAddedToProvider() override; 41 void OnAddedToProvider() override;
42 42
43 private: 43 private:
44 std::unique_ptr<gvr::ControllerApi> controller_api_; 44 std::unique_ptr<gvr::ControllerApi> controller_api_;
45 std::unique_ptr<gvr::UserPrefs> user_prefs_;
46 gvr::ControllerState controller_state_; 45 gvr::ControllerState controller_state_;
46 gvr::ControllerHandedness handedness_;
47 unsigned int display_id_; 47 unsigned int display_id_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(GvrGamepadDataFetcher); 49 DISALLOW_COPY_AND_ASSIGN(GvrGamepadDataFetcher);
50 }; 50 };
51 51
52 } // namespace device 52 } // namespace device
53 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ 53 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_
OLDNEW
« no previous file with comments | « no previous file | device/vr/android/gvr/gvr_gamepad_data_fetcher.cc » ('j') | device/vr/android/gvr/gvr_gamepad_data_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698