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

Side by Side Diff: ppapi/shared_impl/ppb_input_event_shared.cc

Issue 10833013: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 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 | « net/socket/ssl_server_socket_nss.cc ('k') | ui/base/clipboard/clipboard_gtk.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) 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 #include "ppapi/shared_impl/ppb_input_event_shared.h" 5 #include "ppapi/shared_impl/ppb_input_event_shared.h"
6 6
7 #include "ppapi/shared_impl/var.h" 7 #include "ppapi/shared_impl/var.h"
8 8
9 using ppapi::thunk::PPB_InputEvent_API; 9 using ppapi::thunk::PPB_InputEvent_API;
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 InputEventData::InputEventData() 13 InputEventData::InputEventData()
14 : is_filtered(false), 14 : is_filtered(false),
15 event_type(PP_INPUTEVENT_TYPE_UNDEFINED), 15 event_type(PP_INPUTEVENT_TYPE_UNDEFINED),
16 event_time_stamp(0.0), 16 event_time_stamp(0.0),
17 event_modifiers(0), 17 event_modifiers(0),
18 mouse_button(PP_INPUTEVENT_MOUSEBUTTON_NONE), 18 mouse_button(PP_INPUTEVENT_MOUSEBUTTON_NONE),
19 mouse_position(PP_MakePoint(0, 0)), 19 mouse_position(PP_MakePoint(0, 0)),
20 mouse_click_count(0), 20 mouse_click_count(0),
21 mouse_movement(PP_MakePoint(0, 0)), 21 mouse_movement(PP_MakePoint(0, 0)),
22 wheel_delta(PP_MakeFloatPoint(0.0f, 0.0f)), 22 wheel_delta(PP_MakeFloatPoint(0.0f, 0.0f)),
23 wheel_ticks(PP_MakeFloatPoint(0.0f, 0.0f)), 23 wheel_ticks(PP_MakeFloatPoint(0.0f, 0.0f)),
24 wheel_scroll_by_page(false), 24 wheel_scroll_by_page(false),
25 key_code(0), 25 key_code(0),
26 usb_key_code(0),
26 character_text(), 27 character_text(),
27 composition_target_segment(-1), 28 composition_target_segment(-1),
28 composition_selection_start(0), 29 composition_selection_start(0),
29 composition_selection_end(0), 30 composition_selection_end(0),
30 touches(), 31 touches(),
31 changed_touches(), 32 changed_touches(),
32 target_touches() { 33 target_touches() {
33 } 34 }
34 35
35 InputEventData::~InputEventData() { 36 InputEventData::~InputEventData() {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 return 0; 338 return 0;
338 339
339 InputEventData data; 340 InputEventData data;
340 data.event_type = event_type; 341 data.event_type = event_type;
341 data.event_time_stamp = time_stamp; 342 data.event_time_stamp = time_stamp;
342 data.event_modifiers = modifiers; 343 data.event_modifiers = modifiers;
343 return (new PPB_InputEvent_Shared(type, instance, data))->GetReference(); 344 return (new PPB_InputEvent_Shared(type, instance, data))->GetReference();
344 } 345 }
345 346
346 } // namespace ppapi 347 } // namespace ppapi
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | ui/base/clipboard/clipboard_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698