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

Side by Side Diff: remoting/client/plugin/chromoting_plugin.cc

Issue 2900003: Chrome side of converting enums to uppercase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « DEPS ('k') | remoting/client/plugin/pepper_entrypoints.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) 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 LOG(ERROR) << "Unable to allocate image."; 141 LOG(ERROR) << "Unable to allocate image.";
142 } 142 }
143 */ 143 */
144 144
145 //client_->SetViewport(0, 0, width_, height_); 145 //client_->SetViewport(0, 0, width_, height_);
146 //client_->Repaint(); 146 //client_->Repaint();
147 } 147 }
148 148
149 bool ChromotingPlugin::HandleEvent(const PP_Event& event) { 149 bool ChromotingPlugin::HandleEvent(const PP_Event& event) {
150 switch (event.type) { 150 switch (event.type) {
151 case PP_Event_Type_MouseDown: 151 case PP_EVENT_TYPE_MOUSEDOWN:
152 case PP_Event_Type_MouseUp: 152 case PP_EVENT_TYPE_MOUSEUP:
153 case PP_Event_Type_MouseMove: 153 case PP_EVENT_TYPE_MOUSEMOVE:
154 case PP_Event_Type_MouseEnter: 154 case PP_EVENT_TYPE_MOUSEENTER:
155 case PP_Event_Type_MouseLeave: 155 case PP_EVENT_TYPE_MOUSELEAVE:
156 //client_->handle_mouse_event(npevent); 156 //client_->handle_mouse_event(npevent);
157 break; 157 break;
158 158
159 case PP_Event_Type_Char: 159 case PP_EVENT_TYPE_CHAR:
160 //client_->handle_char_event(npevent); 160 //client_->handle_char_event(npevent);
161 break; 161 break;
162 162
163 default: 163 default:
164 break; 164 break;
165 } 165 }
166 166
167 return false; 167 return false;
168 } 168 }
169 169
(...skipping 28 matching lines...) Expand all
198 pos = parts[2].rfind('='); 198 pos = parts[2].rfind('=');
199 if (pos == string::npos && (pos + 1) != string::npos) { 199 if (pos == string::npos && (pos + 1) != string::npos) {
200 return false; 200 return false;
201 } 201 }
202 host_jid->assign(parts[2].substr(pos + 1)); 202 host_jid->assign(parts[2].substr(pos + 1));
203 203
204 return true; 204 return true;
205 } 205 }
206 206
207 } // namespace remoting 207 } // namespace remoting
OLDNEW
« no previous file with comments | « DEPS ('k') | remoting/client/plugin/pepper_entrypoints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698