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 #import "speech_input_window_controller.h" | 5 #import "speech_input_window_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #include "chrome/browser/ui/cocoa/info_bubble_view.h" | 9 #include "chrome/browser/ui/cocoa/info_bubble_view.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
11 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
12 #include "media/audio/audio_manager.h" | |
13 #import "skia/ext/skia_utils_mac.h" | 12 #import "skia/ext/skia_utils_mac.h" |
14 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 13 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
15 #include "ui/base/l10n/l10n_util_mac.h" | 14 #include "ui/base/l10n/l10n_util_mac.h" |
16 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
17 #include "ui/gfx/image/image.h" | 16 #include "ui/gfx/image/image.h" |
18 | 17 |
19 const int kBubbleControlVerticalSpacing = 10; // Space between controls. | 18 const int kBubbleControlVerticalSpacing = 10; // Space between controls. |
20 const int kBubbleHorizontalMargin = 5; // Space on either sides of controls. | 19 const int kBubbleHorizontalMargin = 5; // Space on either sides of controls. |
21 const int kInstructionLabelMaxWidth = 150; | 20 const int kInstructionLabelMaxWidth = 150; |
22 | 21 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 217 |
219 - (void)hide { | 218 - (void)hide { |
220 [[self window] orderOut:nil]; | 219 [[self window] orderOut:nil]; |
221 } | 220 } |
222 | 221 |
223 - (void)setImage:(NSImage*)image { | 222 - (void)setImage:(NSImage*)image { |
224 [iconImage_ setImage:image]; | 223 [iconImage_ setImage:image]; |
225 } | 224 } |
226 | 225 |
227 @end // implementation SpeechInputWindowController | 226 @end // implementation SpeechInputWindowController |
OLD | NEW |