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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 22320006: Move gamepad reader code out of PepperHelperImpl in the effort to eliminate PepperHelperImpl. I'm a… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix clang Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 std::list<std::string> data_; 529 std::list<std::string> data_;
530 bool finished_loading_; 530 bool finished_loading_;
531 scoped_ptr<WebKit::WebURLError> error_; 531 scoped_ptr<WebKit::WebURLError> error_;
532 }; 532 };
533 533
534 // Implements PPB_Gamepad_API. This is just to avoid having an excessive 534 // Implements PPB_Gamepad_API. This is just to avoid having an excessive
535 // number of interfaces implemented by PepperPluginInstanceImpl. 535 // number of interfaces implemented by PepperPluginInstanceImpl.
536 class GamepadImpl : public ::ppapi::thunk::PPB_Gamepad_API, 536 class GamepadImpl : public ::ppapi::thunk::PPB_Gamepad_API,
537 public ::ppapi::Resource { 537 public ::ppapi::Resource {
538 public: 538 public:
539 explicit GamepadImpl(PepperHelperImpl* helper); 539 GamepadImpl();
540 // Resource implementation. 540 // Resource implementation.
541 virtual ::ppapi::thunk::PPB_Gamepad_API* AsPPB_Gamepad_API() OVERRIDE; 541 virtual ::ppapi::thunk::PPB_Gamepad_API* AsPPB_Gamepad_API() OVERRIDE;
542 virtual void Sample(PP_Instance instance, 542 virtual void Sample(PP_Instance instance,
543 PP_GamepadsSampleData* data) OVERRIDE; 543 PP_GamepadsSampleData* data) OVERRIDE;
544 private: 544 private:
545 virtual ~GamepadImpl(); 545 virtual ~GamepadImpl();
546 PepperHelperImpl* helper_;
547 }; 546 };
548 547
549 // See the static Create functions above for creating PepperPluginInstanceImpl 548 // See the static Create functions above for creating PepperPluginInstanceImpl
550 // objects. This constructor is private so that we can hide the 549 // objects. This constructor is private so that we can hide the
551 // PPP_Instance_Combined details while still having 1 constructor to maintain 550 // PPP_Instance_Combined details while still having 1 constructor to maintain
552 // for member initialization. 551 // for member initialization.
553 PepperPluginInstanceImpl(PepperHelperImpl* helper, 552 PepperPluginInstanceImpl(PepperHelperImpl* helper,
554 RenderViewImpl* render_view, 553 RenderViewImpl* render_view,
555 PluginModule* module, 554 PluginModule* module,
556 ::ppapi::PPP_Instance_Combined* instance_interface, 555 ::ppapi::PPP_Instance_Combined* instance_interface,
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 854
856 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_; 855 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_;
857 856
858 friend class PpapiPluginInstanceTest; 857 friend class PpapiPluginInstanceTest;
859 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 858 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
860 }; 859 };
861 860
862 } // namespace content 861 } // namespace content
863 862
864 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 863 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_helper_impl.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698