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

Side by Side Diff: Source/modules/gamepad/NavigatorGamepad.h

Issue 345013002: Notify the browser when the page lost interest about gamepads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed for relanding Created 6 years, 6 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 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // DOMWindowProperty 70 // DOMWindowProperty
71 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; 71 virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
72 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; 72 virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
73 73
74 // DeviceEventControllerBase 74 // DeviceEventControllerBase
75 virtual void registerWithDispatcher() OVERRIDE; 75 virtual void registerWithDispatcher() OVERRIDE;
76 virtual void unregisterWithDispatcher() OVERRIDE; 76 virtual void unregisterWithDispatcher() OVERRIDE;
77 virtual bool hasLastData() OVERRIDE; 77 virtual bool hasLastData() OVERRIDE;
78 virtual void didUpdateData() OVERRIDE; 78 virtual void didUpdateData() OVERRIDE;
79 virtual void pageVisibilityChanged() OVERRIDE;
79 80
80 // DOMWindowLifecycleObserver 81 // DOMWindowLifecycleObserver
81 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR IDE; 82 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR IDE;
82 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV ERRIDE; 83 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV ERRIDE;
83 virtual void didRemoveAllEventListeners(LocalDOMWindow*) OVERRIDE; 84 virtual void didRemoveAllEventListeners(LocalDOMWindow*) OVERRIDE;
84 85
85 PersistentWillBeMember<GamepadList> m_gamepads; 86 PersistentWillBeMember<GamepadList> m_gamepads;
86 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; 87 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads;
88 bool m_wasPolled;
87 }; 89 };
88 90
89 } // namespace WebCore 91 } // namespace WebCore
90 92
91 #endif // NavigatorGamepad_h 93 #endif // NavigatorGamepad_h
OLDNEW
« no previous file with comments | « Source/core/frame/DeviceEventControllerBase.h ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698