OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/gtk/gtk_theme_provider.h" | |
11 #include "chrome/browser/gtk/gtk_util.h" | |
12 #include "chrome/browser/gtk/info_bubble_gtk.h" | |
13 #include "chrome/browser/gtk/owned_widget_gtk.h" | |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 13 #include "chrome/browser/ui/gtk/info_bubble_gtk.h" |
| 14 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" |
15 #include "gfx/gtk_util.h" | 15 #include "gfx/gtk_util.h" |
16 #include "gfx/rect.h" | 16 #include "gfx/rect.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const int kBubbleControlVerticalSpacing = 10; | 22 const int kBubbleControlVerticalSpacing = 10; |
23 const int kBubbleControlHorizontalSpacing = 20; | 23 const int kBubbleControlHorizontalSpacing = 20; |
24 const int kIconHorizontalPadding = 30; | 24 const int kIconHorizontalPadding = 30; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 } // namespace | 207 } // namespace |
208 | 208 |
209 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( | 209 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( |
210 TabContents* tab_contents, | 210 TabContents* tab_contents, |
211 Delegate* delegate, | 211 Delegate* delegate, |
212 const gfx::Rect& element_rect) { | 212 const gfx::Rect& element_rect) { |
213 return new SpeechInputBubbleGtk(tab_contents, delegate, element_rect); | 213 return new SpeechInputBubbleGtk(tab_contents, delegate, element_rect); |
214 } | 214 } |
215 | 215 |
OLD | NEW |