| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/client/plugin/chromoting_plugin.h" | 5 #include "remoting/client/plugin/chromoting_plugin.h" |
| 6 | 6 |
| 7 #include "remoting/client/plugin/client.h" | 7 #include "remoting/client/plugin/client.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 client_->set_window(); | 65 client_->set_window(); |
| 66 | 66 |
| 67 draw(); | 67 draw(); |
| 68 | 68 |
| 69 return NPERR_NO_ERROR; | 69 return NPERR_NO_ERROR; |
| 70 } | 70 } |
| 71 | 71 |
| 72 int16 ChromotingPlugin::HandleEvent(void* event) { | 72 int16 ChromotingPlugin::HandleEvent(void* event) { |
| 73 NPPepperEvent* npevent = static_cast<NPPepperEvent*>(event); | 73 NPPepperEvent* npevent = static_cast<NPPepperEvent*>(event); |
| 74 char ch; | |
| 75 | 74 |
| 76 switch (npevent->type) { | 75 switch (npevent->type) { |
| 77 case NPEventType_MouseDown: | 76 case NPEventType_MouseDown: |
| 78 // Fall through | 77 // Fall through |
| 79 case NPEventType_MouseUp: | 78 case NPEventType_MouseUp: |
| 80 // Fall through | 79 // Fall through |
| 81 case NPEventType_MouseMove: | 80 case NPEventType_MouseMove: |
| 82 // Fall through | 81 // Fall through |
| 83 case NPEventType_MouseEnter: | 82 case NPEventType_MouseEnter: |
| 84 // Fall through | 83 // Fall through |
| (...skipping 20 matching lines...) Expand all Loading... |
| 105 | 104 |
| 106 NPError ChromotingPlugin::GetValue(NPPVariable variable, void* value) { | 105 NPError ChromotingPlugin::GetValue(NPPVariable variable, void* value) { |
| 107 return NPERR_NO_ERROR; | 106 return NPERR_NO_ERROR; |
| 108 } | 107 } |
| 109 | 108 |
| 110 NPError ChromotingPlugin::SetValue(NPNVariable variable, void* value) { | 109 NPError ChromotingPlugin::SetValue(NPNVariable variable, void* value) { |
| 111 return NPERR_NO_ERROR; | 110 return NPERR_NO_ERROR; |
| 112 } | 111 } |
| 113 | 112 |
| 114 } // namespace remoting | 113 } // namespace remoting |
| OLD | NEW |