| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h" | 5 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 9 #include "chrome/browser/cookies_tree_model.h" | 10 #include "chrome/browser/cookies_tree_model.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" | 12 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
| 12 #include "chrome/browser/ui/gtk/gtk_chrome_cookie_view.h" | 13 #include "chrome/browser/ui/gtk/gtk_chrome_cookie_view.h" |
| 13 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 14 #include "content/browser/tab_contents/tab_contents.h" | 15 #include "content/browser/tab_contents/tab_contents.h" |
| 15 #include "content/common/notification_source.h" | 16 #include "content/common/notification_source.h" |
| 16 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 18 | 19 |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); | 503 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); |
| 503 gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); | 504 gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); |
| 504 g_signal_handlers_unblock_by_func( | 505 g_signal_handlers_unblock_by_func( |
| 505 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); | 506 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); |
| 506 } | 507 } |
| 507 | 508 |
| 508 void CollectedCookiesGtk::OnTreeViewSelectionChange(GtkWidget* selection) { | 509 void CollectedCookiesGtk::OnTreeViewSelectionChange(GtkWidget* selection) { |
| 509 EnableControls(); | 510 EnableControls(); |
| 510 ShowCookieInfo(gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_))); | 511 ShowCookieInfo(gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_))); |
| 511 } | 512 } |
| OLD | NEW |