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

Side by Side Diff: chrome/browser/gtk/gtk_chrome_cookie_view.h

Issue 1774005: GTK: The cookie prompt should allow the user to set expire date for HTML cookies (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Fix tests Created 10 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_GTK_CHROME_COOKIE_VIEW_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_
6 #define CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_ 6 #define CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 GtkWidget* first_label_; 56 GtkWidget* first_label_;
57 57
58 // The cookie details widgets. 58 // The cookie details widgets.
59 GtkWidget* cookie_details_table_; 59 GtkWidget* cookie_details_table_;
60 GtkWidget* cookie_name_entry_; 60 GtkWidget* cookie_name_entry_;
61 GtkWidget* cookie_content_entry_; 61 GtkWidget* cookie_content_entry_;
62 GtkWidget* cookie_domain_entry_; 62 GtkWidget* cookie_domain_entry_;
63 GtkWidget* cookie_path_entry_; 63 GtkWidget* cookie_path_entry_;
64 GtkWidget* cookie_send_for_entry_; 64 GtkWidget* cookie_send_for_entry_;
65 GtkWidget* cookie_created_entry_; 65 GtkWidget* cookie_created_entry_;
66
67 // Note: These two widgets are mutually exclusive based on what
68 // |editable_expiration| was when the cookie view was created. One of these
69 // variables will be NULL.
66 GtkWidget* cookie_expires_entry_; 70 GtkWidget* cookie_expires_entry_;
Evan Stade 2010/04/27 19:32:35 it seems that the code would be a little more self
71 GtkWidget* cookie_expires_combobox_;
72
73 GtkListStore* cookie_expires_combobox_store_;
67 74
68 // The database details widgets. 75 // The database details widgets.
69 GtkWidget* database_details_table_; 76 GtkWidget* database_details_table_;
70 GtkWidget* database_name_entry_; 77 GtkWidget* database_name_entry_;
71 GtkWidget* database_description_entry_; 78 GtkWidget* database_description_entry_;
72 GtkWidget* database_size_entry_; 79 GtkWidget* database_size_entry_;
73 GtkWidget* database_last_modified_entry_; 80 GtkWidget* database_last_modified_entry_;
74 81
75 // The local storage details widgets. 82 // The local storage details widgets.
76 GtkWidget* local_storage_details_table_; 83 GtkWidget* local_storage_details_table_;
(...skipping 26 matching lines...) Expand all
103 GtkWidget* appcache_created_manifest_entry_; 110 GtkWidget* appcache_created_manifest_entry_;
104 } GtkChromeCookieView; 111 } GtkChromeCookieView;
105 112
106 typedef struct { 113 typedef struct {
107 GtkFrameClass parent_class; 114 GtkFrameClass parent_class;
108 } GtkChromeCookieViewClass; 115 } GtkChromeCookieViewClass;
109 116
110 GType gtk_chrome_cookie_view_get_type(); 117 GType gtk_chrome_cookie_view_get_type();
111 118
112 // Builds a new cookie view. 119 // Builds a new cookie view.
113 GtkChromeCookieView* gtk_chrome_cookie_view_new(); 120 GtkWidget* gtk_chrome_cookie_view_new(gboolean editable_expiration);
114 121
115 // Clears the cookie view. 122 // Clears the cookie view.
116 void gtk_chrome_cookie_view_clear(GtkChromeCookieView* widget); 123 void gtk_chrome_cookie_view_clear(GtkChromeCookieView* widget);
117 124
118 // NOTE: The G_END_DECLS ends here instead of at the end of the document 125 // NOTE: The G_END_DECLS ends here instead of at the end of the document
119 // because we want to define some methods on GtkChromeCookieView that take C++ 126 // because we want to define some methods on GtkChromeCookieView that take C++
120 // objects. 127 // objects.
121 G_END_DECLS 128 G_END_DECLS
122 // NOTE: ^^^^^^^^^^^^^^^^^^^^^^^ 129 // NOTE: ^^^^^^^^^^^^^^^^^^^^^^^
123 130
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 GtkChromeCookieView* self, 167 GtkChromeCookieView* self,
161 const std::string& host, 168 const std::string& host,
162 const string16& database_name, 169 const string16& database_name,
163 const string16& display_name, 170 const string16& display_name,
164 unsigned long estimated_size); 171 unsigned long estimated_size);
165 172
166 void gtk_chrome_cookie_view_display_appcache_created( 173 void gtk_chrome_cookie_view_display_appcache_created(
167 GtkChromeCookieView* self, 174 GtkChromeCookieView* self,
168 const GURL& manifest_url); 175 const GURL& manifest_url);
169 176
177 // If |editable_expiration| was true at construction time, returns the value of
178 // the combo box. Otherwise, returns false.
179 bool gtk_chrome_cookie_view_session_expires(GtkChromeCookieView* self);
180
170 #endif // CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_ 181 #endif // CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698