| 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_WEB_INTENT_PICKER_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 void set_controller(WebIntentBubbleController* controller); | 37 void set_controller(WebIntentBubbleController* controller); |
| 38 | 38 |
| 39 // WebIntentPicker: | 39 // WebIntentPicker: |
| 40 virtual void Close() OVERRIDE; | 40 virtual void Close() OVERRIDE; |
| 41 | 41 |
| 42 // WebIntentPickerModelObserver implementation. | 42 // WebIntentPickerModelObserver implementation. |
| 43 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; | 43 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; |
| 44 virtual void OnFaviconChanged(WebIntentPickerModel* model, | 44 virtual void OnFaviconChanged(WebIntentPickerModel* model, |
| 45 size_t index) OVERRIDE; | 45 size_t index) OVERRIDE; |
| 46 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, |
| 47 const string16& extension_id) OVERRIDE; |
| 46 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE; | 48 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE; |
| 47 | 49 |
| 48 private: | 50 private: |
| 49 // Weak pointer to the |delegate_| to notify about user choice/cancellation. | 51 // Weak pointer to the |delegate_| to notify about user choice/cancellation. |
| 50 WebIntentPickerDelegate* delegate_; | 52 WebIntentPickerDelegate* delegate_; |
| 51 | 53 |
| 52 // The picker model. Weak reference. | 54 // The picker model. Weak reference. |
| 53 WebIntentPickerModel* model_; | 55 WebIntentPickerModel* model_; |
| 54 | 56 |
| 55 Browser* browser_; // The browser we're in. Weak Reference. | 57 Browser* browser_; // The browser we're in. Weak Reference. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 77 // Default constructor, for testing only. | 79 // Default constructor, for testing only. |
| 78 WebIntentPickerCocoa(); | 80 WebIntentPickerCocoa(); |
| 79 | 81 |
| 80 // For testing access. | 82 // For testing access. |
| 81 friend class WebIntentBubbleControllerTest; | 83 friend class WebIntentBubbleControllerTest; |
| 82 | 84 |
| 83 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); | 85 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ | 88 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ |
| OLD | NEW |