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 #ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #include "base/memory/scoped_nsobject.h" | 11 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
13 #include "chrome/browser/ui/intents/web_intent_picker.h" | 13 #include "chrome/browser/ui/intents/web_intent_picker.h" |
14 | 14 |
15 class Browser; | |
16 class WebIntentPickerDelegate; | |
17 class SkBitmap; | |
18 class WebIntentPickerCocoa; | 15 class WebIntentPickerCocoa; |
19 | 16 |
20 // Controller for intent picker bubble. This bubble pops up whenever a web | 17 // Controller for intent picker bubble. This bubble pops up whenever a web |
21 // page invokes ActivateIntent and lets the user choose which service should | 18 // page invokes ActivateIntent and lets the user choose which service should |
22 // be used to handle this action. | 19 // be used to handle this action. |
23 @interface WebIntentBubbleController : BaseBubbleController { | 20 @interface WebIntentBubbleController : BaseBubbleController { |
24 @private | 21 @private |
25 // Images for all icons shown in bubble. | 22 // Images for all icons shown in bubble. |
26 scoped_nsobject<NSPointerArray> iconImages_; | 23 scoped_nsobject<NSPointerArray> iconImages_; |
27 | 24 |
(...skipping 14 matching lines...) Expand all Loading... |
42 | 39 |
43 // Replaces the |image| for service at |index|. | 40 // Replaces the |image| for service at |index|. |
44 - (void)replaceImageAtIndex:(size_t)index withImage:(NSImage*)image; | 41 - (void)replaceImageAtIndex:(size_t)index withImage:(NSImage*)image; |
45 | 42 |
46 // Set the service |urls| for all services. | 43 // Set the service |urls| for all services. |
47 - (void)setServiceURLs:(NSArray*)urls; | 44 - (void)setServiceURLs:(NSArray*)urls; |
48 | 45 |
49 @end // WebIntentBubbleController | 46 @end // WebIntentBubbleController |
50 | 47 |
51 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ |
OLD | NEW |