Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: chrome/browser/ui/cocoa/web_intent_picker_cocoa.h

Issue 11141037: Disable delegation to picker controller once it is deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix tests. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void OnSuggestionsLinkClicked(WindowOpenDisposition disposition); 45 void OnSuggestionsLinkClicked(WindowOpenDisposition disposition);
46 void OnChooseAnotherService(); 46 void OnChooseAnotherService();
47 47
48 // WebIntentPicker implementation. 48 // WebIntentPicker implementation.
49 virtual void Close() OVERRIDE; 49 virtual void Close() OVERRIDE;
50 virtual void SetActionString(const string16& action) OVERRIDE; 50 virtual void SetActionString(const string16& action) OVERRIDE;
51 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; 51 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
52 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE; 52 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE;
53 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE; 53 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE;
54 virtual void OnPendingAsyncCompleted() OVERRIDE; 54 virtual void OnPendingAsyncCompleted() OVERRIDE;
55 virtual void InvalidateDelegate() OVERRIDE;
55 56
56 // WebIntentPickerModelObserver implementation. 57 // WebIntentPickerModelObserver implementation.
57 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; 58 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
58 virtual void OnFaviconChanged(WebIntentPickerModel* model, 59 virtual void OnFaviconChanged(WebIntentPickerModel* model,
59 size_t index) OVERRIDE; 60 size_t index) OVERRIDE;
60 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, 61 virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
61 const std::string& extension_id) OVERRIDE; 62 const std::string& extension_id) OVERRIDE;
62 virtual void OnInlineDisposition(const string16& title, 63 virtual void OnInlineDisposition(const string16& title,
63 const GURL& url) OVERRIDE; 64 const GURL& url) OVERRIDE;
64 65
(...skipping 26 matching lines...) Expand all
91 // Default constructor, for testing only. 92 // Default constructor, for testing only.
92 WebIntentPickerCocoa(); 93 WebIntentPickerCocoa();
93 94
94 // For testing access. 95 // For testing access.
95 friend class WebIntentSheetControllerBrowserTest; 96 friend class WebIntentSheetControllerBrowserTest;
96 97
97 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); 98 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa);
98 }; 99 };
99 100
100 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ 101 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/intents/web_intent_picker_cocoa2.mm ('k') | chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698