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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 2712863005: Cocoa Page Info: Implement expanding all permissions (Closed)
Patch Set: Rebase. Created 3 years, 9 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <memory> 7 #include <memory>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Container for the site settings section. 75 // Container for the site settings section.
76 NSView* siteSettingsSectionView_; 76 NSView* siteSettingsSectionView_;
77 77
78 // Container for cookies info in the site settings section. 78 // Container for cookies info in the site settings section.
79 NSView* cookiesView_; 79 NSView* cookiesView_;
80 80
81 // Container for permission info in the site settings section. 81 // Container for permission info in the site settings section.
82 NSView* permissionsView_; 82 NSView* permissionsView_;
83 83
84 // Whether the permissionView_ shows anything. 84 // The link button for showing all permissions and/or showing site settings.
85 BOOL permissionsPresent_; 85 NSButton* permissionButton_;
86
87 // The link button for showing site settings.
88 NSButton* siteSettingsButton_;
89 86
90 // The UI translates user actions to specific events and forwards them to the 87 // The UI translates user actions to specific events and forwards them to the
91 // |presenter_|. The |presenter_| handles these events and updates the UI. 88 // |presenter_|. The |presenter_| handles these events and updates the UI.
92 std::unique_ptr<WebsiteSettings> presenter_; 89 std::unique_ptr<WebsiteSettings> presenter_;
93 90
94 // Bridge which implements the WebsiteSettingsUI interface and forwards 91 // Bridge which implements the WebsiteSettingsUI interface and forwards
95 // methods on to this class. 92 // methods on to this class.
96 std::unique_ptr<WebsiteSettingsUIBridge> bridge_; 93 std::unique_ptr<WebsiteSettingsUIBridge> bridge_;
97 } 94 }
98 95
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 143
147 private: 144 private:
148 // The WebContents the bubble UI is attached to. 145 // The WebContents the bubble UI is attached to.
149 content::WebContents* web_contents_; 146 content::WebContents* web_contents_;
150 147
151 // The Cocoa controller for the bubble UI. 148 // The Cocoa controller for the bubble UI.
152 WebsiteSettingsBubbleController* bubble_controller_; 149 WebsiteSettingsBubbleController* bubble_controller_;
153 150
154 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); 151 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge);
155 }; 152 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698