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

Side by Side Diff: chrome/browser/speech/speech_input_bubble_views.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
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 "chrome/browser/speech/speech_input_bubble.h" 5 #include "chrome/browser/speech/speech_input_bubble.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 SpeechInputBubbleView::SpeechInputBubbleView( 87 SpeechInputBubbleView::SpeechInputBubbleView(
88 SpeechInputBubbleDelegate* delegate, 88 SpeechInputBubbleDelegate* delegate,
89 views::View* anchor_view, 89 views::View* anchor_view,
90 const gfx::Rect& element_rect, 90 const gfx::Rect& element_rect,
91 TabContents* tab_contents) 91 TabContents* tab_contents)
92 : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT), 92 : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT),
93 delegate_(delegate), 93 delegate_(delegate),
94 element_rect_(element_rect), 94 element_rect_(element_rect),
95 tab_contents_(tab_contents), 95 tab_contents_(tab_contents),
96 icon_(NULL),
97 heading_(NULL),
98 message_(NULL),
99 try_again_(NULL),
100 cancel_(NULL),
101 mic_settings_(NULL),
96 display_mode_(SpeechInputBubbleBase::DISPLAY_MODE_WARM_UP), 102 display_mode_(SpeechInputBubbleBase::DISPLAY_MODE_WARM_UP),
97 kIconLayoutMinWidth(ResourceBundle::GetSharedInstance().GetBitmapNamed( 103 kIconLayoutMinWidth(ResourceBundle::GetSharedInstance().GetBitmapNamed(
98 IDR_SPEECH_INPUT_MIC_EMPTY)->width()) { 104 IDR_SPEECH_INPUT_MIC_EMPTY)->width()) {
99 // The bubble lifetime is managed by its controller; closing on escape or 105 // The bubble lifetime is managed by its controller; closing on escape or
100 // explicitly closing on deactivation will cause unexpected behavior. 106 // explicitly closing on deactivation will cause unexpected behavior.
101 set_close_on_esc(false); 107 set_close_on_esc(false);
102 set_close_on_deactivate(false); 108 set_close_on_deactivate(false);
103 } 109 }
104 110
105 void SpeechInputBubbleView::OnWidgetActivationChanged(views::Widget* widget, 111 void SpeechInputBubbleView::OnWidgetActivationChanged(views::Widget* widget,
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 375 }
370 376
371 } // namespace 377 } // namespace
372 378
373 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( 379 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble(
374 TabContents* tab_contents, 380 TabContents* tab_contents,
375 SpeechInputBubble::Delegate* delegate, 381 SpeechInputBubble::Delegate* delegate,
376 const gfx::Rect& element_rect) { 382 const gfx::Rect& element_rect) {
377 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); 383 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect);
378 } 384 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_subsystem.cc ('k') | chrome/browser/ui/snapshot_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698