OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 | 14 |
15 class SkBitmap; | 15 class SkBitmap; |
16 class SkCanvas; | 16 class SkCanvas; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class WebContents; | 19 class WebContents; |
20 } | 20 } |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class Canvas; | |
24 class Rect; | 23 class Rect; |
25 } | 24 } |
26 | 25 |
27 // SpeechInputBubble displays a popup info bubble during speech recognition, | 26 // SpeechInputBubble displays a popup info bubble during speech recognition, |
28 // points to the html element which requested speech input and shows recognition | 27 // points to the html element which requested speech input and shows recognition |
29 // progress events. The popup is closed by the user clicking anywhere outside | 28 // progress events. The popup is closed by the user clicking anywhere outside |
30 // the popup window, or by the caller destroying this object. | 29 // the popup window, or by the caller destroying this object. |
31 class SpeechInputBubble { | 30 class SpeechInputBubble { |
32 public: | 31 public: |
33 // The various buttons which may be part of the bubble. | 32 // The various buttons which may be part of the bubble. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 scoped_ptr<SkBitmap> icon_image_; | 188 scoped_ptr<SkBitmap> icon_image_; |
190 }; | 189 }; |
191 | 190 |
192 // This typedef is to workaround the issue with certain versions of | 191 // This typedef is to workaround the issue with certain versions of |
193 // Visual Studio where it gets confused between multiple Delegate | 192 // Visual Studio where it gets confused between multiple Delegate |
194 // classes and gives a C2500 error. (I saw this error on the try bots - | 193 // classes and gives a C2500 error. (I saw this error on the try bots - |
195 // the workaround was not needed for my machine). | 194 // the workaround was not needed for my machine). |
196 typedef SpeechInputBubble::Delegate SpeechInputBubbleDelegate; | 195 typedef SpeechInputBubble::Delegate SpeechInputBubbleDelegate; |
197 | 196 |
198 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ | 197 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
OLD | NEW |