| OLD | NEW |
| 1 // Copyright (c) 2011 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 "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents_view.h" | 11 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 12 #include "chrome/browser/ui/views/info_bubble.h" | 12 #include "chrome/browser/ui/views/info_bubble.h" |
| 13 #include "gfx/canvas.h" | 13 #include "gfx/canvas.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
| 18 #include "views/controls/button/native_button.h" | 18 #include "views/controls/button/native_button.h" |
| 19 #include "views/controls/image_view.h" | 19 #include "views/controls/image_view.h" |
| 20 #include "views/controls/label.h" | 20 #include "views/controls/label.h" |
| 21 #include "views/standard_layout.h" | 21 #include "views/layout/layout_constants.h" |
| 22 #include "views/view.h" | 22 #include "views/view.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 const int kBubbleHorizMargin = 6; | 26 const int kBubbleHorizMargin = 6; |
| 27 const int kBubbleVertMargin = 0; | 27 const int kBubbleVertMargin = 0; |
| 28 | 28 |
| 29 // This is the content view which is placed inside a SpeechInputBubble. | 29 // This is the content view which is placed inside a SpeechInputBubble. |
| 30 class ContentView | 30 class ContentView |
| 31 : public views::View, | 31 : public views::View, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 314 } |
| 315 | 315 |
| 316 } // namespace | 316 } // namespace |
| 317 | 317 |
| 318 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( | 318 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( |
| 319 TabContents* tab_contents, | 319 TabContents* tab_contents, |
| 320 SpeechInputBubble::Delegate* delegate, | 320 SpeechInputBubble::Delegate* delegate, |
| 321 const gfx::Rect& element_rect) { | 321 const gfx::Rect& element_rect) { |
| 322 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); | 322 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); |
| 323 } | 323 } |
| OLD | NEW |