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

Issue 3133034: Adds a speech input info bubble. (Closed)

Created:
10 years, 4 months ago by Satish
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, arv (Not doing code reviews), ben+cc_chromium.org
Visibility:
Public.

Description

Adds a speech input info bubble. I have not implemented the Mac/Linux part yet, will do so in a subsequent CL (does InfoBubble exist for Mac?). This info bubble remains visible on screen until recognition ends or the user cancels it. It also tracks the html element which requested speech recognition if it changes position on screen (e.g. user scrolls the page or moves the browser window). To get this working, I extended InfoBubble to query the delegate if it can be closed when another window gets activated, as well as to reposition it when required. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57199

Patch Set 1 #

Total comments: 27

Patch Set 2 : Address sky's comments. #

Total comments: 14

Patch Set 3 : Addressed sky's comments. #

Total comments: 2

Patch Set 4 : Removed Close method and tweaked the delegate. #

Patch Set 5 : Reorganised speech bubble into an interface and implementation. #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/app/theme/speech_input_processing.png View Binary file 0 comments Download
A chrome/app/theme/speech_input_recording.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/speech/speech_input_bubble.h View 1 chunk +61 lines, -0 lines 7 comments Download
A chrome/browser/views/speech_input_bubble.cc View 1 2 3 4 1 chunk +255 lines, -0 lines 5 comments Download
M chrome/chrome_browser.gypi View 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Satish
10 years, 4 months ago (2010-08-23 17:09:01 UTC) #1
sky
Can you e http://codereview.chromium.org/3133034/diff/1/2 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/3133034/diff/1/2#newcode9235 chrome/app/generated_resources.grd:9235: <message name="IDS_SPEECH_INPUT_BUBBLE_HEADING" desc="First line in the ...
10 years, 4 months ago (2010-08-23 19:51:59 UTC) #2
sky
Sorry, hit the publish button too quickly last time. http://codereview.chromium.org/3133034/diff/1/7 File chrome/browser/views/info_bubble.h (right): http://codereview.chromium.org/3133034/diff/1/7#newcode172 chrome/browser/views/info_bubble.h:172: ...
10 years, 4 months ago (2010-08-23 19:52:48 UTC) #3
Satish
Thanks for the quick review, I've addressed all comments. There are now no changes now ...
10 years, 4 months ago (2010-08-23 23:26:02 UTC) #4
sky
http://codereview.chromium.org/3133034/diff/13001/3006 File chrome/browser/views/speech_input_bubble.cc (right): http://codereview.chromium.org/3133034/diff/13001/3006#newcode168 chrome/browser/views/speech_input_bubble.cc:168: } Does this also need to delete this? http://codereview.chromium.org/3133034/diff/13001/3006#newcode182 ...
10 years, 4 months ago (2010-08-23 23:50:13 UTC) #5
Satish
http://codereview.chromium.org/3133034/diff/13001/3006 File chrome/browser/views/speech_input_bubble.cc (right): http://codereview.chromium.org/3133034/diff/13001/3006#newcode168 chrome/browser/views/speech_input_bubble.cc:168: } On 2010/08/23 23:50:13, sky wrote: > Does this ...
10 years, 4 months ago (2010-08-24 00:10:20 UTC) #6
sky
http://codereview.chromium.org/3133034/diff/21001/22005 File chrome/browser/views/speech_input_bubble.cc (right): http://codereview.chromium.org/3133034/diff/21001/22005#newcode142 chrome/browser/views/speech_input_bubble.cc:142: DCHECK(!info_bubble_); Can't the owner destroy the this at any ...
10 years, 4 months ago (2010-08-24 00:19:07 UTC) #7
Satish
http://codereview.chromium.org/3133034/diff/21001/22005 File chrome/browser/views/speech_input_bubble.cc (right): http://codereview.chromium.org/3133034/diff/21001/22005#newcode142 chrome/browser/views/speech_input_bubble.cc:142: DCHECK(!info_bubble_); On 2010/08/24 00:19:07, sky wrote: > Can't the ...
10 years, 4 months ago (2010-08-24 00:25:04 UTC) #8
sky
As long as you've turned off fading close should be immediate. -Scott On Mon, Aug ...
10 years, 4 months ago (2010-08-24 05:05:29 UTC) #9
Satish
I have now removed the Close method since there was no use for it, the ...
10 years, 4 months ago (2010-08-24 11:19:59 UTC) #10
Satish
I found that testing the speech bubble calling code was difficult in the current model, ...
10 years, 4 months ago (2010-08-24 15:36:42 UTC) #11
sky
http://codereview.chromium.org/3133034/diff/30001/16006 File chrome/browser/speech/speech_input_bubble.h (right): http://codereview.chromium.org/3133034/diff/30001/16006#newcode16 chrome/browser/speech/speech_input_bubble.h:16: // the popup window, or by the caller invoking ...
10 years, 4 months ago (2010-08-24 16:08:27 UTC) #12
Satish
Thanks, will address the comments. A couple of questions/replies below. http://codereview.chromium.org/3133034/diff/30001/16006 File chrome/browser/speech/speech_input_bubble.h (right): http://codereview.chromium.org/3133034/diff/30001/16006#newcode41 ...
10 years, 4 months ago (2010-08-24 16:22:03 UTC) #13
sky
LGTM if you remove the factory method typedef. Wait until you know you need it ...
10 years, 4 months ago (2010-08-24 16:49:57 UTC) #14
Satish
10 years, 4 months ago (2010-08-24 16:57:35 UTC) #15
Thanks, removed the typedef in this CL and will add in the CL where it will be
used.

Powered by Google App Engine
This is Rietveld 408576698