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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 10830013: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix 2. 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 | « content/app/content_main_runner.cc ('k') | media/video/capture/win/sink_input_pin_win.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 "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/renderer_host/render_widget_host_impl.h" 9 #include "content/browser/renderer_host/render_widget_host_impl.h"
10 #include "content/port/browser/smooth_scroll_gesture.h" 10 #include "content/port/browser/smooth_scroll_gesture.h"
(...skipping 26 matching lines...) Expand all
37 RenderWidgetHostViewPort* RenderWidgetHostViewPort::CreateViewForWidget( 37 RenderWidgetHostViewPort* RenderWidgetHostViewPort::CreateViewForWidget(
38 content::RenderWidgetHost* widget) { 38 content::RenderWidgetHost* widget) {
39 return FromRWHV(RenderWidgetHostView::CreateViewForWidget(widget)); 39 return FromRWHV(RenderWidgetHostView::CreateViewForWidget(widget));
40 } 40 }
41 41
42 RenderWidgetHostViewBase::RenderWidgetHostViewBase() 42 RenderWidgetHostViewBase::RenderWidgetHostViewBase()
43 : popup_type_(WebKit::WebPopupTypeNone), 43 : popup_type_(WebKit::WebPopupTypeNone),
44 mouse_locked_(false), 44 mouse_locked_(false),
45 showing_context_menu_(false), 45 showing_context_menu_(false),
46 selection_text_offset_(0), 46 selection_text_offset_(0),
47 selection_range_(ui::Range::InvalidRange()) { 47 selection_range_(ui::Range::InvalidRange()),
48 current_device_scale_factor_(0) {
48 } 49 }
49 50
50 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { 51 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() {
51 DCHECK(!mouse_locked_); 52 DCHECK(!mouse_locked_);
52 } 53 }
53 54
54 void RenderWidgetHostViewBase::SetBackground(const SkBitmap& background) { 55 void RenderWidgetHostViewBase::SetBackground(const SkBitmap& background) {
55 background_ = background; 56 background_ = background;
56 } 57 }
57 58
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool scroll_down_; 162 bool scroll_down_;
162 bool scroll_far_; 163 bool scroll_far_;
163 }; 164 };
164 165
165 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture( 166 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture(
166 bool scroll_down, bool scroll_far) { 167 bool scroll_down, bool scroll_far) {
167 return new BasicMouseWheelSmoothScrollGesture(scroll_down, scroll_far); 168 return new BasicMouseWheelSmoothScrollGesture(scroll_down, scroll_far);
168 } 169 }
169 170
170 } // namespace content 171 } // namespace content
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | media/video/capture/win/sink_input_pin_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698