| 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 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/common/content_settings.h" | 10 #include "chrome/common/content_settings.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 class Label; | 25 class Label; |
| 26 class NativeButton; | 26 class NativeButton; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // This is the Views implementation of the collected cookies dialog. | 29 // This is the Views implementation of the collected cookies dialog. |
| 30 // | 30 // |
| 31 // CollectedCookiesWin is a dialog that displays the allowed and blocked | 31 // CollectedCookiesWin is a dialog that displays the allowed and blocked |
| 32 // cookies of the current tab contents. To display the dialog, invoke | 32 // cookies of the current tab contents. To display the dialog, invoke |
| 33 // ShowCollectedCookiesDialog() on the delegate of the tab contents. | 33 // ShowCollectedCookiesDialog() on the delegate of the tab contents wrapper's |
| 34 // content settings tab helper. |
| 34 class CollectedCookiesWin : public ConstrainedDialogDelegate, | 35 class CollectedCookiesWin : public ConstrainedDialogDelegate, |
| 35 public NotificationObserver, | 36 public NotificationObserver, |
| 36 public views::ButtonListener, | 37 public views::ButtonListener, |
| 37 public views::TabbedPaneListener, | 38 public views::TabbedPaneListener, |
| 38 public views::TreeViewController, | 39 public views::TreeViewController, |
| 39 public views::View { | 40 public views::View { |
| 40 public: | 41 public: |
| 41 // Use BrowserWindow::ShowCollectedCookiesDialog to show. | 42 // Use BrowserWindow::ShowCollectedCookiesDialog to show. |
| 42 CollectedCookiesWin(gfx::NativeWindow parent_window, | 43 CollectedCookiesWin(gfx::NativeWindow parent_window, |
| 43 TabContents* tab_contents); | 44 TabContents* tab_contents); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 CookieInfoView* cookie_info_view_; | 106 CookieInfoView* cookie_info_view_; |
| 106 | 107 |
| 107 InfobarView* infobar_; | 108 InfobarView* infobar_; |
| 108 | 109 |
| 109 bool status_changed_; | 110 bool status_changed_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesWin); | 112 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesWin); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ | 115 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_WIN_H_ |
| OLD | NEW |