| OLD | NEW |
| 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/chrome_to_mobile_service_factory.h" | 10 #include "chrome/browser/chrome_to_mobile_service_factory.h" |
| 11 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 11 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 12 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 12 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 13 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 13 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
| 14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
| 15 #include "content/public/browser/notification_types.h" |
| 15 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/base/l10n/l10n_util_mac.h" | 18 #include "ui/base/l10n/l10n_util_mac.h" |
| 18 #include "ui/base/text/bytes_formatting.h" | 19 #include "ui/base/text/bytes_formatting.h" |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 // The verical padding between the radio group and the send copy checkbox. | 23 // The verical padding between the radio group and the send copy checkbox. |
| 23 const CGFloat kVerticalPadding = 10; | 24 const CGFloat kVerticalPadding = 10; |
| 24 | 25 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 266 |
| 266 - (void)setSendCopy:(bool)sendCopy { | 267 - (void)setSendCopy:(bool)sendCopy { |
| 267 [sendCopy_ setState:(sendCopy ? NSOnState : NSOffState)]; | 268 [sendCopy_ setState:(sendCopy ? NSOnState : NSOffState)]; |
| 268 } | 269 } |
| 269 | 270 |
| 270 - (ChromeToMobileBubbleNotificationBridge*)bridge { | 271 - (ChromeToMobileBubbleNotificationBridge*)bridge { |
| 271 return bridge_.get(); | 272 return bridge_.get(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 @end // ChromeToMobileBubbleController (JustForTesting) | 275 @end // ChromeToMobileBubbleController (JustForTesting) |
| OLD | NEW |