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

Unified Diff: chrome/browser/cocoa/speech_input_window_controller.mm

Issue 3352018: Show error messages in speech bubble allowing user to retry as well. (Closed)
Patch Set: Address joth's comments. Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/speech_input_window_controller.mm
diff --git a/chrome/browser/cocoa/speech_input_window_controller.mm b/chrome/browser/cocoa/speech_input_window_controller.mm
index 1efb3f4ff73fe8e05c3844cd8167059b5ff98f40..24d7cfe52324250c54e325c8a7b14f7d53ab70e7 100644
--- a/chrome/browser/cocoa/speech_input_window_controller.mm
+++ b/chrome/browser/cocoa/speech_input_window_controller.mm
@@ -63,7 +63,7 @@ const int kBubbleHorizontalMargin = 15; // Space on either sides of controls.
}
- (IBAction)cancel:(id)sender {
- delegate_->RecognitionCancelled();
+ delegate_->InfoBubbleButtonClicked(SpeechInputBubble::BUTTON_CANCEL);
}
// Calculate the window dimensions to reflect the sum height and max width of
@@ -123,7 +123,7 @@ const int kBubbleHorizontalMargin = 15; // Space on either sides of controls.
}
- (void)windowWillClose:(NSNotification*)notification {
- delegate_->InfoBubbleClosed();
+ delegate_->InfoBubbleFocusChanged();
}
@end // implementation SpeechInputWindowController

Powered by Google App Engine
This is Rietveld 408576698