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/views/collected_cookies_win.h" | 5 #include "chrome/browser/ui/views/collected_cookies_win.h" |
6 | 6 |
7 #include "chrome/browser/content_settings/cookie_settings.h" | 7 #include "chrome/browser/content_settings/cookie_settings.h" |
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
9 #include "chrome/browser/cookies_tree_model.h" | 9 #include "chrome/browser/cookies_tree_model.h" |
10 #include "chrome/browser/infobars/infobar_tab_helper.h" | 10 #include "chrome/browser/infobars/infobar_tab_helper.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/locale_settings.h" | 23 #include "grit/locale_settings.h" |
24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
27 #include "ui/gfx/color_utils.h" | 27 #include "ui/gfx/color_utils.h" |
28 #include "ui/views/layout/box_layout.h" | 28 #include "ui/views/layout/box_layout.h" |
29 #include "ui/views/layout/grid_layout.h" | 29 #include "ui/views/layout/grid_layout.h" |
30 #include "ui/views/layout/layout_constants.h" | 30 #include "ui/views/layout/layout_constants.h" |
| 31 #include "ui/views/widget/widget.h" |
31 #include "views/controls/button/text_button.h" | 32 #include "views/controls/button/text_button.h" |
32 #include "views/controls/image_view.h" | 33 #include "views/controls/image_view.h" |
33 #include "views/controls/label.h" | 34 #include "views/controls/label.h" |
34 #include "views/controls/tabbed_pane/tabbed_pane.h" | 35 #include "views/controls/tabbed_pane/tabbed_pane.h" |
35 #include "views/widget/widget.h" | |
36 | 36 |
37 namespace browser { | 37 namespace browser { |
38 | 38 |
39 // Declared in browser_dialogs.h so others don't have to depend on our header. | 39 // Declared in browser_dialogs.h so others don't have to depend on our header. |
40 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, | 40 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, |
41 TabContentsWrapper* wrapper) { | 41 TabContentsWrapper* wrapper) { |
42 // Deletes itself on close. | 42 // Deletes itself on close. |
43 new CollectedCookiesWin(parent_window, wrapper); | 43 new CollectedCookiesWin(parent_window, wrapper); |
44 } | 44 } |
45 | 45 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 /////////////////////////////////////////////////////////////////////////////// | 505 /////////////////////////////////////////////////////////////////////////////// |
506 // content::NotificationObserver implementation. | 506 // content::NotificationObserver implementation. |
507 | 507 |
508 void CollectedCookiesWin::Observe(int type, | 508 void CollectedCookiesWin::Observe(int type, |
509 const content::NotificationSource& source, | 509 const content::NotificationSource& source, |
510 const content::NotificationDetails& details) { | 510 const content::NotificationDetails& details) { |
511 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); | 511 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); |
512 window_->CloseConstrainedWindow(); | 512 window_->CloseConstrainedWindow(); |
513 } | 513 } |
OLD | NEW |