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

Side by Side Diff: content/browser/gamepad/gamepad_platform_data_fetcher_android.h

Issue 884103004: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 // Define the data fetcher that GamepadProvider will use for android port. 5 // Define the data fetcher that GamepadProvider will use for android port.
6 // (GamepadPlatformDataFetcher). 6 // (GamepadPlatformDataFetcher).
7 7
8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
10 10
11 #include <jni.h> 11 #include <jni.h>
12 12
13 #include "base/android/jni_android.h" 13 #include "base/android/jni_android.h"
14 #include "content/browser/gamepad/gamepad_data_fetcher.h" 14 #include "content/browser/gamepad/gamepad_data_fetcher.h"
15 #include "content/browser/gamepad/gamepad_provider.h" 15 #include "content/browser/gamepad/gamepad_provider.h"
16 #include "content/browser/gamepad/gamepad_standard_mappings.h" 16 #include "content/browser/gamepad/gamepad_standard_mappings.h"
17 #include "third_party/WebKit/public/platform/WebGamepads.h" 17 #include "third_party/WebKit/public/platform/WebGamepads.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher { 21 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
22 public: 22 public:
23 GamepadPlatformDataFetcherAndroid(); 23 GamepadPlatformDataFetcherAndroid();
24 virtual ~GamepadPlatformDataFetcherAndroid(); 24 ~GamepadPlatformDataFetcherAndroid() override;
25 25
26 virtual void PauseHint(bool paused) override; 26 void PauseHint(bool paused) override;
27 27
28 virtual void GetGamepadData(blink::WebGamepads* pads, 28 void GetGamepadData(blink::WebGamepads* pads,
29 bool devices_changed_hint) override; 29 bool devices_changed_hint) override;
30 30
31 // Registers the JNI methods for GamepadsReader. 31 // Registers the JNI methods for GamepadsReader.
32 static bool RegisterGamepadPlatformDataFetcherAndroid(JNIEnv* env); 32 static bool RegisterGamepadPlatformDataFetcherAndroid(JNIEnv* env);
33 33
34 private: 34 private:
35 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid); 35 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
36 }; 36 };
37 37
38 } // namespace content 38 } // namespace content
39 39
40 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 40 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/browser/geolocation/location_provider_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698