| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This is the Gtk implementation of the Cookie Manager dialog. | 5 // This is the Gtk implementation of the Cookie Manager dialog. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ | 7 #ifndef CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ |
| 8 #define CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ | 8 #define CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ |
| 9 | 9 |
| 10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Create (if necessary) and show the cookie manager window. | 32 // Create (if necessary) and show the cookie manager window. |
| 33 static void Show(Profile* profile); | 33 static void Show(Profile* profile); |
| 34 | 34 |
| 35 // gtk_tree::ModelAdapter::Delegate implementation. | 35 // gtk_tree::ModelAdapter::Delegate implementation. |
| 36 virtual void OnAnyModelUpdate(); | 36 virtual void OnAnyModelUpdate(); |
| 37 virtual void SetColumnValues(int row, GtkTreeIter* iter); | 37 virtual void SetColumnValues(int row, GtkTreeIter* iter); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // Column ids for |list_store_|. | 40 // Column ids for |list_store_|. |
| 41 enum { | 41 enum { |
| 42 COL_ICON, | |
| 43 COL_SITE, | 42 COL_SITE, |
| 44 COL_COOKIE_NAME, | 43 COL_COOKIE_NAME, |
| 45 COL_COUNT, | 44 COL_COUNT, |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 explicit CookiesView(Profile* profile); | 47 explicit CookiesView(Profile* profile); |
| 49 | 48 |
| 50 // Initialize the dialog contents and layout. | 49 // Initialize the dialog contents and layout. |
| 51 void Init(); | 50 void Init(); |
| 52 | 51 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 FRIEND_TEST(CookiesViewTest, FilterRemove); | 147 FRIEND_TEST(CookiesViewTest, FilterRemove); |
| 149 FRIEND_TEST(CookiesViewTest, Sort); | 148 FRIEND_TEST(CookiesViewTest, Sort); |
| 150 FRIEND_TEST(CookiesViewTest, SortRemove); | 149 FRIEND_TEST(CookiesViewTest, SortRemove); |
| 151 FRIEND_TEST(CookiesViewTest, SortFilterRemove); | 150 FRIEND_TEST(CookiesViewTest, SortFilterRemove); |
| 152 FRIEND_TEST(CookiesViewTest, SortRemoveMultiple); | 151 FRIEND_TEST(CookiesViewTest, SortRemoveMultiple); |
| 153 | 152 |
| 154 DISALLOW_COPY_AND_ASSIGN(CookiesView); | 153 DISALLOW_COPY_AND_ASSIGN(CookiesView); |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 #endif // CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ | 156 #endif // CHROME_BROWSER_GTK_OPTIONS_COOKIES_VIEW_H_ |
| OLD | NEW |