| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // WebIntentPicker: | 40 // WebIntentPicker: |
| 41 virtual void Close() OVERRIDE; | 41 virtual void Close() OVERRIDE; |
| 42 | 42 |
| 43 // WebIntentPickerModelObserver implementation. | 43 // WebIntentPickerModelObserver implementation. |
| 44 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; | 44 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; |
| 45 virtual void OnFaviconChanged(WebIntentPickerModel* model, | 45 virtual void OnFaviconChanged(WebIntentPickerModel* model, |
| 46 size_t index) OVERRIDE; | 46 size_t index) OVERRIDE; |
| 47 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, | 47 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, |
| 48 const string16& extension_id) OVERRIDE; | 48 const string16& extension_id) OVERRIDE; |
| 49 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE; | 49 virtual void OnInlineDisposition(WebIntentPickerModel* model, |
| 50 const GURL& url) OVERRIDE; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 ConstrainedWindow* window_; // Window for constrained sheet. Weak reference. | 53 ConstrainedWindow* window_; // Window for constrained sheet. Weak reference. |
| 53 | 54 |
| 54 // Weak pointer to the |delegate_| to notify about user choice/cancellation. | 55 // Weak pointer to the |delegate_| to notify about user choice/cancellation. |
| 55 WebIntentPickerDelegate* delegate_; | 56 WebIntentPickerDelegate* delegate_; |
| 56 | 57 |
| 57 // The picker model. Weak reference. | 58 // The picker model. Weak reference. |
| 58 WebIntentPickerModel* model_; | 59 WebIntentPickerModel* model_; |
| 59 | 60 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 76 // Default constructor, for testing only. | 77 // Default constructor, for testing only. |
| 77 WebIntentPickerCocoa(); | 78 WebIntentPickerCocoa(); |
| 78 | 79 |
| 79 // For testing access. | 80 // For testing access. |
| 80 friend class WebIntentPickerSheetControllerTest; | 81 friend class WebIntentPickerSheetControllerTest; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); | 83 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ |
| OLD | NEW |