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/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 "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "chrome/browser/cookies_tree_model.h" | 10 #include "chrome/browser/cookies_tree_model.h" |
11 #include "chrome/browser/gtk/gtk_util.h" | |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/gtk/gtk_util.h" |
14 #include "chrome/common/notification_source.h" | 14 #include "chrome/common/notification_source.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 // Width and height of the cookie tree view. | 18 // Width and height of the cookie tree view. |
19 const int kTreeViewWidth = 450; | 19 const int kTreeViewWidth = 450; |
20 const int kTreeViewHeight = 150; | 20 const int kTreeViewHeight = 150; |
21 | 21 |
22 // Padding within the banner box. | 22 // Padding within the banner box. |
23 const int kBannerPadding = 3; | 23 const int kBannerPadding = 3; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 g_signal_handlers_block_by_func( | 392 g_signal_handlers_block_by_func( |
393 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); | 393 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); |
394 gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); | 394 gtk_tree_view_expand_row(GTK_TREE_VIEW(tree_view), path, TRUE); |
395 g_signal_handlers_unblock_by_func( | 395 g_signal_handlers_unblock_by_func( |
396 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); | 396 tree_view, reinterpret_cast<gpointer>(OnTreeViewRowExpandedThunk), this); |
397 } | 397 } |
398 | 398 |
399 void CollectedCookiesGtk::OnTreeViewSelectionChange(GtkWidget* selection) { | 399 void CollectedCookiesGtk::OnTreeViewSelectionChange(GtkWidget* selection) { |
400 EnableControls(); | 400 EnableControls(); |
401 } | 401 } |
OLD | NEW |