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

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

Issue 10411010: [Gtk, WebIntents] Support autosizing of inline content. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE; 47 virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE;
48 48
49 // WebIntentPickerModelObserver implementation. 49 // WebIntentPickerModelObserver implementation.
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 string16& extension_id) OVERRIDE; 54 const string16& extension_id) OVERRIDE;
55 virtual void OnInlineDisposition(WebIntentPickerModel* model, 55 virtual void OnInlineDisposition(WebIntentPickerModel* model,
56 const GURL& url) OVERRIDE; 56 const GURL& url) OVERRIDE;
57 virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE;
57 58
58 // ConstrainedWindowGtkDelegate implementation. 59 // ConstrainedWindowGtkDelegate implementation.
59 virtual GtkWidget* GetWidgetRoot() OVERRIDE; 60 virtual GtkWidget* GetWidgetRoot() OVERRIDE;
60 virtual GtkWidget* GetFocusWidget() OVERRIDE; 61 virtual GtkWidget* GetFocusWidget() OVERRIDE;
61 virtual void DeleteDelegate() OVERRIDE; 62 virtual void DeleteDelegate() OVERRIDE;
62 virtual bool ShouldHaveBorderPadding() const OVERRIDE; 63 virtual bool ShouldHaveBorderPadding() const OVERRIDE;
63 64
64 // content::NotificationObserver implementation. 65 // content::NotificationObserver implementation.
65 virtual void Observe(int type, 66 virtual void Observe(int type,
66 const content::NotificationSource& source, 67 const content::NotificationSource& source,
67 const content::NotificationDetails& details) OVERRIDE; 68 const content::NotificationDetails& details) OVERRIDE;
68 69
69 private: 70 private:
70 // Callback when picker is destroyed. 71 // Callback when picker is destroyed.
71 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnDestroy); 72 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnDestroy);
72 // Callback when a service button is clicked. 73 // Callback when a service button is clicked.
73 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnServiceButtonClick); 74 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnServiceButtonClick);
74 // Callback when close button is clicked. 75 // Callback when close button is clicked.
75 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnCloseButtonClick); 76 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnCloseButtonClick);
76 // Callback when suggested extension title link is clicked. 77 // Callback when suggested extension title link is clicked.
77 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnExtensionLinkClick); 78 CHROMEGTK_CALLBACK_0(WebIntentPickerGtk, void, OnExtensionLinkClick);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 // content::WebContentsDelegate for the inline disposition dialog. 149 // content::WebContentsDelegate for the inline disposition dialog.
149 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_; 150 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_;
150 151
151 content::NotificationRegistrar registrar_; 152 content::NotificationRegistrar registrar_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); 154 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk);
154 }; 155 };
155 156
156 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ 157 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/web_intent_picker_gtk.cc » ('j') | chrome/browser/ui/gtk/web_intent_picker_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698