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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "chrome/browser/speech/speech_input_bubble.h" | 7 #include "chrome/browser/speech/speech_input_bubble.h" |
8 | 8 |
9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | |
11 #include "chrome/browser/tab_contents/tab_contents_view.h" | |
12 #import "chrome/browser/ui/cocoa/speech_input_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/speech_input_window_controller.h" |
| 11 #include "content/browser/tab_contents/tab_contents.h" |
| 12 #include "content/browser/tab_contents/tab_contents_view.h" |
13 #include "skia/ext/skia_utils_mac.h" | 13 #include "skia/ext/skia_utils_mac.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // A class to bridge between the speech recognition C++ code and the Objective-C | 17 // A class to bridge between the speech recognition C++ code and the Objective-C |
18 // bubble implementation. See chrome/browser/speech/speech_input_bubble.h for | 18 // bubble implementation. See chrome/browser/speech/speech_input_bubble.h for |
19 // more information on how this gets used. | 19 // more information on how this gets used. |
20 class SpeechInputBubbleImpl : public SpeechInputBubbleBase { | 20 class SpeechInputBubbleImpl : public SpeechInputBubbleBase { |
21 public: | 21 public: |
22 SpeechInputBubbleImpl(TabContents* tab_contents, | 22 SpeechInputBubbleImpl(TabContents* tab_contents, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 } // namespace | 97 } // namespace |
98 | 98 |
99 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( | 99 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( |
100 TabContents* tab_contents, | 100 TabContents* tab_contents, |
101 Delegate* delegate, | 101 Delegate* delegate, |
102 const gfx::Rect& element_rect) { | 102 const gfx::Rect& element_rect) { |
103 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); | 103 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); |
104 } | 104 } |
105 | 105 |
OLD | NEW |