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

Side by Side Diff: chrome/browser/ui/gtk/web_intent_picker_gtk.h

Issue 11141037: Disable delegation to picker controller once it is deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK on accessor. 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_GTK_WEB_INTENT_PICKER_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; 50 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
51 virtual void OnFaviconChanged(WebIntentPickerModel* model, 51 virtual void OnFaviconChanged(WebIntentPickerModel* model,
52 size_t index) OVERRIDE; 52 size_t index) OVERRIDE;
53 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, 53 virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
54 const std::string& extension_id) OVERRIDE; 54 const std::string& extension_id) OVERRIDE;
55 virtual void OnInlineDisposition(const string16& title, 55 virtual void OnInlineDisposition(const string16& title,
56 const GURL& url) OVERRIDE; 56 const GURL& url) OVERRIDE;
57 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE; 57 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE;
58 58
59 virtual void OnPendingAsyncCompleted() OVERRIDE; 59 virtual void OnPendingAsyncCompleted() OVERRIDE;
60 virtual void InvalidateDelegate() OVERRIDE;
60 61
61 // ConstrainedWindowGtkDelegate implementation. 62 // ConstrainedWindowGtkDelegate implementation.
62 virtual GtkWidget* GetWidgetRoot() OVERRIDE; 63 virtual GtkWidget* GetWidgetRoot() OVERRIDE;
63 virtual GtkWidget* GetFocusWidget() OVERRIDE; 64 virtual GtkWidget* GetFocusWidget() OVERRIDE;
64 virtual void DeleteDelegate() OVERRIDE; 65 virtual void DeleteDelegate() OVERRIDE;
65 virtual bool ShouldHaveBorderPadding() const OVERRIDE; 66 virtual bool ShouldHaveBorderPadding() const OVERRIDE;
66 67
67 // content::NotificationObserver implementation. 68 // content::NotificationObserver implementation.
68 virtual void Observe(int type, 69 virtual void Observe(int type,
69 const content::NotificationSource& source, 70 const content::NotificationSource& source,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 // content::WebContentsDelegate for the inline disposition dialog. 177 // content::WebContentsDelegate for the inline disposition dialog.
177 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_; 178 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_;
178 179
179 content::NotificationRegistrar registrar_; 180 content::NotificationRegistrar registrar_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); 182 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk);
182 }; 183 };
183 184
184 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ 185 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698