| OLD | NEW |
| 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" |
| 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 11 #import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h" |
| 12 #include "chrome/browser/ui/website_settings/website_settings_ui.h" | 12 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 14 | 14 |
| 15 class WebsiteSettingsUIBridge; | 15 class WebsiteSettingsUIBridge; |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class WebContents; | 18 class WebContents; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 class X509Certificate; | 22 class X509Certificate; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace security_state { | 25 namespace security_state { |
| 26 struct SecurityInfo; | 26 struct SecurityInfo; |
| 27 } // namespace security_state | 27 } // namespace security_state |
| 28 | 28 |
| 29 // This NSWindowController subclass manages the InfoBubbleWindow and view that | 29 // This NSWindowController subclass manages the InfoBubbleWindow and view that |
| 30 // are displayed when the user clicks the favicon or security lock icon. | 30 // are displayed when the user clicks the favicon or security lock icon. |
| 31 // | 31 // |
| 32 // TODO(palmer): Normalize all WebsiteSettings*, SiteSettings*, PageInfo*, et c. | 32 // TODO(palmer): Normalize all WebsiteSettings*, SiteSettings*, PageInfo*, et c. |
| 33 // to OriginInfo*. | 33 // to OriginInfo*. |
| 34 @interface WebsiteSettingsBubbleController : BaseBubbleController { | 34 @interface WebsiteSettingsBubbleController : OmniboxDecorationBubbleController { |
| 35 @private | 35 @private |
| 36 content::WebContents* webContents_; | 36 content::WebContents* webContents_; |
| 37 | 37 |
| 38 base::scoped_nsobject<NSView> contentView_; | 38 base::scoped_nsobject<NSView> contentView_; |
| 39 | 39 |
| 40 // The main content view for the Permissions tab. | 40 // The main content view for the Permissions tab. |
| 41 NSView* securitySectionView_; | 41 NSView* securitySectionView_; |
| 42 | 42 |
| 43 // Displays the short security summary for the page | 43 // Displays the short security summary for the page |
| 44 // (private/not private/etc.). | 44 // (private/not private/etc.). |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 // The WebContents the bubble UI is attached to. | 147 // The WebContents the bubble UI is attached to. |
| 148 content::WebContents* web_contents_; | 148 content::WebContents* web_contents_; |
| 149 | 149 |
| 150 // The Cocoa controller for the bubble UI. | 150 // The Cocoa controller for the bubble UI. |
| 151 WebsiteSettingsBubbleController* bubble_controller_; | 151 WebsiteSettingsBubbleController* bubble_controller_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); | 153 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); |
| 154 }; | 154 }; |
| OLD | NEW |