OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_views.h" | 5 #include "chrome/browser/ui/views/collected_cookies_views.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
9 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" | 9 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" |
10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "ui/views/controls/image_view.h" | 37 #include "ui/views/controls/image_view.h" |
38 #include "ui/views/controls/label.h" | 38 #include "ui/views/controls/label.h" |
39 #include "ui/views/controls/scroll_view.h" | 39 #include "ui/views/controls/scroll_view.h" |
40 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" | 40 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" |
41 #include "ui/views/controls/tree/tree_view.h" | 41 #include "ui/views/controls/tree/tree_view.h" |
42 #include "ui/views/layout/box_layout.h" | 42 #include "ui/views/layout/box_layout.h" |
43 #include "ui/views/layout/grid_layout.h" | 43 #include "ui/views/layout/grid_layout.h" |
44 #include "ui/views/layout/layout_constants.h" | 44 #include "ui/views/layout/layout_constants.h" |
45 #include "ui/views/widget/widget.h" | 45 #include "ui/views/widget/widget.h" |
46 | 46 |
| 47 #if !defined(OS_MACOSX) |
47 namespace chrome { | 48 namespace chrome { |
48 | 49 |
49 // Declared in browser_dialogs.h so others don't have to depend on our header. | 50 // Declared in browser_dialogs.h so others don't have to depend on our header. |
50 void ShowCollectedCookiesDialog(content::WebContents* web_contents) { | 51 void ShowCollectedCookiesDialog(content::WebContents* web_contents) { |
51 // Deletes itself on close. | 52 // Deletes itself on close. |
52 new CollectedCookiesViews(web_contents); | 53 new CollectedCookiesViews(web_contents); |
53 } | 54 } |
54 | 55 |
55 } // namespace chrome | 56 } // namespace chrome |
| 57 #endif |
56 | 58 |
57 namespace { | 59 namespace { |
58 | 60 |
59 // Spacing between the infobar frame and its contents. | 61 // Spacing between the infobar frame and its contents. |
60 const int kInfobarVerticalPadding = 3; | 62 const int kInfobarVerticalPadding = 3; |
61 const int kInfobarHorizontalPadding = 8; | 63 const int kInfobarHorizontalPadding = 8; |
62 | 64 |
63 // Width of the infobar frame. | 65 // Width of the infobar frame. |
64 const int kInfobarBorderSize = 1; | 66 const int kInfobarBorderSize = 1; |
65 | 67 |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 /////////////////////////////////////////////////////////////////////////////// | 535 /////////////////////////////////////////////////////////////////////////////// |
534 // CollectedCookiesViews, content::NotificationObserver implementation: | 536 // CollectedCookiesViews, content::NotificationObserver implementation: |
535 | 537 |
536 void CollectedCookiesViews::Observe( | 538 void CollectedCookiesViews::Observe( |
537 int type, | 539 int type, |
538 const content::NotificationSource& source, | 540 const content::NotificationSource& source, |
539 const content::NotificationDetails& details) { | 541 const content::NotificationDetails& details) { |
540 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); | 542 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); |
541 GetWidget()->Close(); | 543 GetWidget()->Close(); |
542 } | 544 } |
OLD | NEW |