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_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 27 matching lines...) Expand all Loading... |
38 WebIntentPickerGtk(TabContents* tab_contents, | 38 WebIntentPickerGtk(TabContents* tab_contents, |
39 WebIntentPickerDelegate* delegate, | 39 WebIntentPickerDelegate* delegate, |
40 WebIntentPickerModel* model); | 40 WebIntentPickerModel* model); |
41 virtual ~WebIntentPickerGtk(); | 41 virtual ~WebIntentPickerGtk(); |
42 | 42 |
43 // WebIntentPicker implementation. | 43 // WebIntentPicker implementation. |
44 virtual void Close() OVERRIDE; | 44 virtual void Close() OVERRIDE; |
45 virtual void SetActionString(const string16& action) OVERRIDE; | 45 virtual void SetActionString(const string16& action) OVERRIDE; |
46 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; | 46 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; |
47 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE; | 47 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE; |
| 48 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE; |
48 | 49 |
49 // WebIntentPickerModelObserver implementation. | 50 // WebIntentPickerModelObserver implementation. |
50 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; | 51 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; |
51 virtual void OnFaviconChanged(WebIntentPickerModel* model, | 52 virtual void OnFaviconChanged(WebIntentPickerModel* model, |
52 size_t index) OVERRIDE; | 53 size_t index) OVERRIDE; |
53 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, | 54 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, |
54 const std::string& extension_id) OVERRIDE; | 55 const std::string& extension_id) OVERRIDE; |
55 virtual void OnInlineDisposition(const string16& title, | 56 virtual void OnInlineDisposition(const string16& title, |
56 const GURL& url) OVERRIDE; | 57 const GURL& url) OVERRIDE; |
57 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE; | |
58 | 58 |
59 virtual void OnPendingAsyncCompleted() OVERRIDE; | 59 virtual void OnPendingAsyncCompleted() OVERRIDE; |
60 | 60 |
61 // ConstrainedWindowGtkDelegate implementation. | 61 // ConstrainedWindowGtkDelegate implementation. |
62 virtual GtkWidget* GetWidgetRoot() OVERRIDE; | 62 virtual GtkWidget* GetWidgetRoot() OVERRIDE; |
63 virtual GtkWidget* GetFocusWidget() OVERRIDE; | 63 virtual GtkWidget* GetFocusWidget() OVERRIDE; |
64 virtual void DeleteDelegate() OVERRIDE; | 64 virtual void DeleteDelegate() OVERRIDE; |
| 65 virtual bool GetBackgroundColor(GdkColor* color) 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, |
70 const content::NotificationDetails& details) OVERRIDE; | 71 const content::NotificationDetails& details) OVERRIDE; |
71 | 72 |
72 private: | 73 private: |
73 // Callback when picker is destroyed. | 74 // Callback when picker is destroyed. |
74 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnDestroy); | 75 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnDestroy); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |