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 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/chrome_to_mobile_service.h" | 15 #include "chrome/browser/chrome_to_mobile_service.h" |
16 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 16 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 | 19 |
20 class Browser; | 20 class Browser; |
21 @class ChromeToMobileBubbleController; | 21 @class ChromeToMobileBubbleController; |
22 class ChromeToMobileService; | 22 class ChromeToMobileService; |
23 | 23 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // The browser that opened this bubble. | 90 // The browser that opened this bubble. |
91 Browser* browser_; | 91 Browser* browser_; |
92 | 92 |
93 // The Chrome To Mobile service associated with this bubble. | 93 // The Chrome To Mobile service associated with this bubble. |
94 ChromeToMobileService* service_; | 94 ChromeToMobileService* service_; |
95 | 95 |
96 // The file path for the MHTML page snapshot. | 96 // The file path for the MHTML page snapshot. |
97 base::FilePath snapshotPath_; | 97 base::FilePath snapshotPath_; |
98 | 98 |
99 // An animation used to cycle through the "Sending..." status messages. | 99 // An animation used to cycle through the "Sending..." status messages. |
100 scoped_nsobject<NSAnimation> progressAnimation_; | 100 base::scoped_nsobject<NSAnimation> progressAnimation_; |
101 } | 101 } |
102 | 102 |
103 // The owner of this object is responsible for showing the bubble. It is not | 103 // The owner of this object is responsible for showing the bubble. It is not |
104 // shown by the init routine. The window closes automatically on deallocation. | 104 // shown by the init routine. The window closes automatically on deallocation. |
105 - (id)initWithParentWindow:(NSWindow*)parentWindow | 105 - (id)initWithParentWindow:(NSWindow*)parentWindow |
106 browser:(Browser*)browser; | 106 browser:(Browser*)browser; |
107 | 107 |
108 // Actions for buttons in the dialog. | 108 // Actions for buttons in the dialog. |
109 - (IBAction)learn:(id)sender; | 109 - (IBAction)learn:(id)sender; |
110 - (IBAction)send:(id)sender; | 110 - (IBAction)send:(id)sender; |
(...skipping 11 matching lines...) Expand all Loading... |
122 @interface ChromeToMobileBubbleController (JustForTesting) | 122 @interface ChromeToMobileBubbleController (JustForTesting) |
123 | 123 |
124 - (id)initWithParentWindow:(NSWindow*)parentWindow | 124 - (id)initWithParentWindow:(NSWindow*)parentWindow |
125 service:(ChromeToMobileService*)service; | 125 service:(ChromeToMobileService*)service; |
126 - (void)setSendCopy:(bool)sendCopy; | 126 - (void)setSendCopy:(bool)sendCopy; |
127 - (ChromeToMobileBubbleNotificationBridge*)bridge; | 127 - (ChromeToMobileBubbleNotificationBridge*)bridge; |
128 | 128 |
129 @end | 129 @end |
130 | 130 |
131 #endif // CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ | 131 #endif // CHROME_BROWSER_UI_COCOA_CHROME_TO_MOBILE_BUBBLE_CONTROLLER_H_ |
OLD | NEW |