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_window.h" | 11 #include "chrome/browser/browser_window.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #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" | 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_source.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" |
25 #include "views/controls/label.h" | 25 #include "views/controls/label.h" |
26 #include "views/standard_layout.h" | 26 #include "views/standard_layout.h" |
27 #include "views/view.h" | 27 #include "views/view.h" |
28 | 28 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 } // namespace | 340 } // namespace |
341 | 341 |
342 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( | 342 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( |
343 TabContents* tab_contents, | 343 TabContents* tab_contents, |
344 SpeechInputBubble::Delegate* delegate, | 344 SpeechInputBubble::Delegate* delegate, |
345 const gfx::Rect& element_rect) { | 345 const gfx::Rect& element_rect) { |
346 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); | 346 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); |
347 } | 347 } |
OLD | NEW |