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

Side by Side Diff: ppapi/proxy/ppp_mouse_lock_proxy.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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
« no previous file with comments | « media/video/capture/win/video_capture_device_win.cc ('k') | remoting/base/decoder_row_based.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" 5 #include "ppapi/proxy/ppp_mouse_lock_proxy.h"
6 6
7 #include "ppapi/c/ppp_mouse_lock.h" 7 #include "ppapi/c/ppp_mouse_lock.h"
8 #include "ppapi/proxy/host_dispatcher.h" 8 #include "ppapi/proxy/host_dispatcher.h"
9 #include "ppapi/proxy/ppapi_messages.h" 9 #include "ppapi/proxy/ppapi_messages.h"
10 10
(...skipping 18 matching lines...) Expand all
29 &MouseLockLost 29 &MouseLockLost
30 }; 30 };
31 31
32 InterfaceProxy* CreateMouseLockProxy(Dispatcher* dispatcher) { 32 InterfaceProxy* CreateMouseLockProxy(Dispatcher* dispatcher) {
33 return new PPP_MouseLock_Proxy(dispatcher); 33 return new PPP_MouseLock_Proxy(dispatcher);
34 } 34 }
35 35
36 } // namespace 36 } // namespace
37 37
38 PPP_MouseLock_Proxy::PPP_MouseLock_Proxy(Dispatcher* dispatcher) 38 PPP_MouseLock_Proxy::PPP_MouseLock_Proxy(Dispatcher* dispatcher)
39 : InterfaceProxy(dispatcher) { 39 : InterfaceProxy(dispatcher),
40 ppp_mouse_lock_impl_(NULL) {
40 if (dispatcher->IsPlugin()) { 41 if (dispatcher->IsPlugin()) {
41 ppp_mouse_lock_impl_ = static_cast<const PPP_MouseLock*>( 42 ppp_mouse_lock_impl_ = static_cast<const PPP_MouseLock*>(
42 dispatcher->local_get_interface()(PPP_MOUSELOCK_INTERFACE)); 43 dispatcher->local_get_interface()(PPP_MOUSELOCK_INTERFACE));
43 } 44 }
44 } 45 }
45 46
46 PPP_MouseLock_Proxy::~PPP_MouseLock_Proxy() { 47 PPP_MouseLock_Proxy::~PPP_MouseLock_Proxy() {
47 } 48 }
48 49
49 // static 50 // static
(...skipping 18 matching lines...) Expand all
68 return handled; 69 return handled;
69 } 70 }
70 71
71 void PPP_MouseLock_Proxy::OnMsgMouseLockLost(PP_Instance instance) { 72 void PPP_MouseLock_Proxy::OnMsgMouseLockLost(PP_Instance instance) {
72 if (ppp_mouse_lock_impl_) 73 if (ppp_mouse_lock_impl_)
73 ppp_mouse_lock_impl_->MouseLockLost(instance); 74 ppp_mouse_lock_impl_->MouseLockLost(instance);
74 } 75 }
75 76
76 } // namespace proxy 77 } // namespace proxy
77 } // namespace ppapi 78 } // namespace ppapi
OLDNEW
« no previous file with comments | « media/video/capture/win/video_capture_device_win.cc ('k') | remoting/base/decoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698