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 "speech_input_window_controller.h" | 5 #import "speech_input_window_controller.h" |
6 | 6 |
7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
10 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
11 #include "chrome/browser/ui/cocoa/info_bubble_view.h" | 10 #include "chrome/browser/ui/cocoa/info_bubble_view.h" |
12 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
13 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
14 #import "skia/ext/skia_utils_mac.h" | 13 #import "skia/ext/skia_utils_mac.h" |
15 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 14 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 15 #include "ui/base/resource/resource_bundle.h" |
16 | 16 |
17 const int kBubbleControlVerticalSpacing = 10; // Space between controls. | 17 const int kBubbleControlVerticalSpacing = 10; // Space between controls. |
18 const int kBubbleHorizontalMargin = 5; // Space on either sides of controls. | 18 const int kBubbleHorizontalMargin = 5; // Space on either sides of controls. |
19 | 19 |
20 @interface SpeechInputWindowController (Private) | 20 @interface SpeechInputWindowController (Private) |
21 - (NSSize)calculateContentSize; | 21 - (NSSize)calculateContentSize; |
22 - (void)layout:(NSSize)size; | 22 - (void)layout:(NSSize)size; |
23 @end | 23 @end |
24 | 24 |
25 @implementation SpeechInputWindowController | 25 @implementation SpeechInputWindowController |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 - (void)hide { | 178 - (void)hide { |
179 [[self window] orderOut:nil]; | 179 [[self window] orderOut:nil]; |
180 } | 180 } |
181 | 181 |
182 - (void)setImage:(NSImage*)image { | 182 - (void)setImage:(NSImage*)image { |
183 [iconImage_ setImage:image]; | 183 [iconImage_ setImage:image]; |
184 } | 184 } |
185 | 185 |
186 @end // implementation SpeechInputWindowController | 186 @end // implementation SpeechInputWindowController |
OLD | NEW |