Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Side by Side Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h

Issue 8603006: Add OVERRIDE to chrome/browser/ui/cocoa/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "base/mac/cocoa_protocols.h" 7 #import "base/mac/cocoa_protocols.h"
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/cookies_tree_model.h" 10 #include "chrome/browser/cookies_tree_model.h"
11 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" 11 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
12 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" 12 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 14
15 @class CollectedCookiesWindowController; 15 @class CollectedCookiesWindowController;
16 @class CookieDetailsViewController; 16 @class CookieDetailsViewController;
17 @class VerticalGradientView; 17 @class VerticalGradientView;
18 class TabContentsWrapper; 18 class TabContentsWrapper;
19 19
20 // The constrained window delegate reponsible for managing the collected 20 // The constrained window delegate reponsible for managing the collected
21 // cookies dialog. 21 // cookies dialog.
22 class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet, 22 class CollectedCookiesMac : public ConstrainedWindowMacDelegateCustomSheet,
23 public content::NotificationObserver { 23 public content::NotificationObserver {
24 public: 24 public:
25 CollectedCookiesMac(NSWindow* parent, TabContentsWrapper* wrapper); 25 CollectedCookiesMac(NSWindow* parent, TabContentsWrapper* wrapper);
26 26
27 void OnSheetDidEnd(NSWindow* sheet); 27 void OnSheetDidEnd(NSWindow* sheet);
28 28
29 // ConstrainedWindowMacDelegateCustomSheet implementation. 29 // ConstrainedWindowMacDelegateCustomSheet implementation.
30 virtual void DeleteDelegate(); 30 virtual void DeleteDelegate() OVERRIDE;
31 31
32 private: 32 private:
33 virtual ~CollectedCookiesMac(); 33 virtual ~CollectedCookiesMac();
34 34
35 // NotificationObserver implementation. 35 // NotificationObserver implementation.
36 virtual void Observe(int type, 36 virtual void Observe(int type,
37 const content::NotificationSource& source, 37 const content::NotificationSource& source,
38 const content::NotificationDetails& details); 38 const content::NotificationDetails& details) OVERRIDE;
39 39
40 content::NotificationRegistrar registrar_; 40 content::NotificationRegistrar registrar_;
41 41
42 ConstrainedWindow* window_; 42 ConstrainedWindow* window_;
43 43
44 CollectedCookiesWindowController* sheet_controller_; 44 CollectedCookiesWindowController* sheet_controller_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac); 46 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac);
47 }; 47 };
48 48
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; 113 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel;
114 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; 114 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model;
115 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; 115 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model;
116 116
117 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. 117 // Returns the |allowedTreeModel_| and |blockedTreeModel_|.
118 - (CookiesTreeModel*)allowedTreeModel; 118 - (CookiesTreeModel*)allowedTreeModel;
119 - (CookiesTreeModel*)blockedTreeModel; 119 - (CookiesTreeModel*)blockedTreeModel;
120 120
121 - (void)loadTreeModelFromTabContentsWrapper; 121 - (void)loadTreeModelFromTabContentsWrapper;
122 @end 122 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/constrained_window_mac.h ('k') | chrome/browser/ui/cocoa/download/background_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698