OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_controller.h" | 5 #include "chrome/browser/speech/speech_input_bubble_controller.h" |
6 | 6 |
7 #include "chrome/browser/browser_thread.h" | 7 #include "chrome/browser/browser_thread.h" |
8 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
9 #include "chrome/browser/tab_contents/tab_util.h" | 9 #include "chrome/browser/tab_contents/tab_util.h" |
10 #include "chrome/common/notification_registrar.h" | 10 #include "chrome/common/notification_registrar.h" |
11 #include "chrome/common/notification_source.h" | 11 #include "chrome/common/notification_source.h" |
12 #include "chrome/common/notification_type.h" | 12 #include "chrome/common/notification_type.h" |
13 #include "gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 | 14 |
15 namespace speech_input { | 15 namespace speech_input { |
16 | 16 |
17 SpeechInputBubbleController::SpeechInputBubbleController(Delegate* delegate) | 17 SpeechInputBubbleController::SpeechInputBubbleController(Delegate* delegate) |
18 : delegate_(delegate), | 18 : delegate_(delegate), |
19 current_bubble_caller_id_(0), | 19 current_bubble_caller_id_(0), |
20 registrar_(new NotificationRegistrar) { | 20 registrar_(new NotificationRegistrar) { |
21 } | 21 } |
22 | 22 |
23 SpeechInputBubbleController::~SpeechInputBubbleController() { | 23 SpeechInputBubbleController::~SpeechInputBubbleController() { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void SpeechInputBubbleController::InvokeDelegateButtonClicked( | 213 void SpeechInputBubbleController::InvokeDelegateButtonClicked( |
214 int caller_id, SpeechInputBubble::Button button) { | 214 int caller_id, SpeechInputBubble::Button button) { |
215 delegate_->InfoBubbleButtonClicked(caller_id, button); | 215 delegate_->InfoBubbleButtonClicked(caller_id, button); |
216 } | 216 } |
217 | 217 |
218 void SpeechInputBubbleController::InvokeDelegateFocusChanged(int caller_id) { | 218 void SpeechInputBubbleController::InvokeDelegateFocusChanged(int caller_id) { |
219 delegate_->InfoBubbleFocusChanged(caller_id); | 219 delegate_->InfoBubbleFocusChanged(caller_id); |
220 } | 220 } |
221 | 221 |
222 } // namespace speech_input | 222 } // namespace speech_input |
OLD | NEW |