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.h" | 5 #include "chrome/browser/speech/speech_input_bubble.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/browser.h" | |
12 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/browser/tab_contents/tab_contents_view.h" | 13 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/views/info_bubble.h" | 15 #include "chrome/browser/views/info_bubble.h" |
16 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
17 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
18 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
19 #include "chrome/common/notification_type.h" | 19 #include "chrome/common/notification_type.h" |
20 #include "gfx/canvas.h" | 20 #include "gfx/canvas.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
23 #include "views/controls/button/native_button.h" | 23 #include "views/controls/button/native_button.h" |
24 #include "views/controls/image_view.h" | 24 #include "views/controls/image_view.h" |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 } | 335 } |
336 | 336 |
337 } // namespace | 337 } // namespace |
338 | 338 |
339 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( | 339 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( |
340 TabContents* tab_contents, | 340 TabContents* tab_contents, |
341 SpeechInputBubble::Delegate* delegate, | 341 SpeechInputBubble::Delegate* delegate, |
342 const gfx::Rect& element_rect) { | 342 const gfx::Rect& element_rect) { |
343 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); | 343 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); |
344 } | 344 } |
OLD | NEW |