OLD | NEW |
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 #include "chrome/browser/gtk/options/cookies_view.h" | 5 #include "chrome/browser/gtk/options/cookies_view.h" |
6 | 6 |
7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "chrome/browser/cookies_tree_model.h" | 14 #include "chrome/browser/cookies_tree_model.h" |
15 #include "chrome/browser/gtk/gtk_util.h" | 15 #include "chrome/browser/gtk/gtk_util.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "gfx/gtk_util.h" | 17 #include "gfx/gtk_util.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "grit/locale_settings.h" | 19 #include "grit/locale_settings.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Initial size for dialog. | 23 // Initial size for dialog. |
24 const int kDialogDefaultWidth = 550; | 24 const int kDialogDefaultWidth = 550; |
25 const int kDialogDefaultHeight = 550; | 25 const int kDialogDefaultHeight = 550; |
26 | 26 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 filter_update_factory_.NewRunnableMethod( | 387 filter_update_factory_.NewRunnableMethod( |
388 &CookiesView::UpdateFilterResults), kSearchFilterDelayMs); | 388 &CookiesView::UpdateFilterResults), kSearchFilterDelayMs); |
389 EnableControls(); | 389 EnableControls(); |
390 } | 390 } |
391 | 391 |
392 void CookiesView::OnFilterClearButtonClicked(GtkWidget* button) { | 392 void CookiesView::OnFilterClearButtonClicked(GtkWidget* button) { |
393 gtk_entry_set_text(GTK_ENTRY(filter_entry_), ""); | 393 gtk_entry_set_text(GTK_ENTRY(filter_entry_), ""); |
394 filter_update_factory_.RevokeAll(); | 394 filter_update_factory_.RevokeAll(); |
395 UpdateFilterResults(); | 395 UpdateFilterResults(); |
396 } | 396 } |
OLD | NEW |