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

Side by Side Diff: webkit/glue/context_menu.cc

Issue 9005015: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. 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 | « remoting/jingle_glue/ssl_socket_adapter.cc ('k') | webkit/media/webmediaplayer_impl.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 "webkit/glue/context_menu.h" 5 #include "webkit/glue/context_menu.h"
6 #include "webkit/glue/glue_serialize.h" 6 #include "webkit/glue/glue_serialize.h"
7 7
8 namespace webkit_glue { 8 namespace webkit_glue {
9 9
10 const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max; 10 const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max;
11 11
12 CustomContextMenuContext::CustomContextMenuContext() 12 CustomContextMenuContext::CustomContextMenuContext()
13 : is_pepper_menu(false), 13 : is_pepper_menu(false),
14 request_id(0), 14 request_id(0),
15 render_widget_id(kCurrentRenderWidget) { 15 render_widget_id(kCurrentRenderWidget) {
16 } 16 }
17 17
18 } // namespace webkit_glue 18 } // namespace webkit_glue
19 19
20 ContextMenuParams::ContextMenuParams() 20 ContextMenuParams::ContextMenuParams()
21 : media_type(WebKit::WebContextMenuData::MediaTypeNone), 21 : media_type(WebKit::WebContextMenuData::MediaTypeNone),
22 x(0), 22 x(0),
23 y(0), 23 y(0),
24 is_image_blocked(false), 24 is_image_blocked(false),
25 frame_id(0), 25 frame_id(0),
26 media_flags(0), 26 media_flags(0),
27 speech_input_enabled(false),
27 spellcheck_enabled(false), 28 spellcheck_enabled(false),
28 is_editable(false), 29 is_editable(false),
29 edit_flags(0), 30 edit_flags(0),
30 referrer_policy(WebKit::WebReferrerPolicyDefault) { 31 referrer_policy(WebKit::WebReferrerPolicyDefault) {
31 } 32 }
32 33
33 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data) 34 ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
34 : media_type(data.mediaType), 35 : media_type(data.mediaType),
35 x(data.mousePosition.x), 36 x(data.mousePosition.x),
36 y(data.mousePosition.y), 37 y(data.mousePosition.y),
(...skipping 28 matching lines...) Expand all
65 custom_items.push_back(WebMenuItem(data.customItems[i])); 66 custom_items.push_back(WebMenuItem(data.customItems[i]));
66 67
67 if (!data.frameHistoryItem.isNull()) { 68 if (!data.frameHistoryItem.isNull()) {
68 frame_content_state = 69 frame_content_state =
69 webkit_glue::HistoryItemToString(data.frameHistoryItem); 70 webkit_glue::HistoryItemToString(data.frameHistoryItem);
70 } 71 }
71 } 72 }
72 73
73 ContextMenuParams::~ContextMenuParams() { 74 ContextMenuParams::~ContextMenuParams() {
74 } 75 }
OLDNEW
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698