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

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: 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_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 // WebIntentPickerModelObserver implementation. 50 // WebIntentPickerModelObserver implementation.
51 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; 51 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
52 virtual void OnFaviconChanged(WebIntentPickerModel* model, 52 virtual void OnFaviconChanged(WebIntentPickerModel* model,
53 size_t index) OVERRIDE; 53 size_t index) OVERRIDE;
54 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, 54 virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
55 const std::string& extension_id) OVERRIDE; 55 const std::string& extension_id) OVERRIDE;
56 virtual void OnInlineDisposition(const string16& title, 56 virtual void OnInlineDisposition(const string16& title,
57 const GURL& url) OVERRIDE; 57 const GURL& url) 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 GetBackgroundColor(GdkColor* color) OVERRIDE; 66 virtual bool GetBackgroundColor(GdkColor* color) OVERRIDE;
66 virtual bool ShouldHaveBorderPadding() const OVERRIDE; 67 virtual bool ShouldHaveBorderPadding() const OVERRIDE;
67 68
68 // content::NotificationObserver implementation. 69 // content::NotificationObserver implementation.
69 virtual void Observe(int type, 70 virtual void Observe(int type,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 // content::WebContentsDelegate for the inline disposition dialog. 178 // content::WebContentsDelegate for the inline disposition dialog.
178 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_; 179 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_;
179 180
180 content::NotificationRegistrar registrar_; 181 content::NotificationRegistrar registrar_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); 183 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk);
183 }; 184 };
184 185
185 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ 186 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm ('k') | chrome/browser/ui/gtk/web_intent_picker_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698