| 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" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/ui/intents/web_intent_picker.h" | 14 #include "chrome/browser/ui/intents/web_intent_picker.h" |
| 15 #include "chrome/browser/ui/intents/web_intent_picker_model.h" | 15 #include "chrome/browser/ui/intents/web_intent_picker_model.h" |
| 16 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" | 16 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" |
| 17 | 17 |
| 18 class ConstrainedWindow; | 18 class ConstrainedWindow; |
| 19 class TabContentsWrapper; | 19 class TabContents; |
| 20 typedef TabContents TabContentsWrapper; |
| 20 @class WebIntentPickerSheetController; | 21 @class WebIntentPickerSheetController; |
| 21 class WebIntentInlineDispositionDelegate; | 22 class WebIntentInlineDispositionDelegate; |
| 22 | 23 |
| 23 // A bridge class that enables communication between ObjectiveC and C++. | 24 // A bridge class that enables communication between ObjectiveC and C++. |
| 24 class WebIntentPickerCocoa : public WebIntentPicker, | 25 class WebIntentPickerCocoa : public WebIntentPicker, |
| 25 public WebIntentPickerModelObserver { | 26 public WebIntentPickerModelObserver { |
| 26 public: | 27 public: |
| 27 // |wrapper|, and |delegate| must not be NULL. | 28 // |wrapper|, and |delegate| must not be NULL. |
| 28 // |browser| should only be NULL for testing purposes. | 29 // |browser| should only be NULL for testing purposes. |
| 29 WebIntentPickerCocoa(TabContentsWrapper* wrapper, | 30 WebIntentPickerCocoa(TabContentsWrapper* wrapper, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Default constructor, for testing only. | 88 // Default constructor, for testing only. |
| 88 WebIntentPickerCocoa(); | 89 WebIntentPickerCocoa(); |
| 89 | 90 |
| 90 // For testing access. | 91 // For testing access. |
| 91 friend class WebIntentSheetControllerBrowserTest; | 92 friend class WebIntentSheetControllerBrowserTest; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); | 94 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ | 97 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ |
| OLD | NEW |