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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/memory/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 9 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
10 #include "chrome/browser/ui/website_settings/website_settings_ui.h" | 10 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |
11 | 11 |
12 class WebsiteSettingsUIBridge; | 12 class WebsiteSettingsUIBridge; |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class WebContents; | 15 class WebContents; |
16 } | 16 } |
17 | 17 |
18 // This NSWindowController subclass manages the InfoBubbleWindow and view that | 18 // This NSWindowController subclass manages the InfoBubbleWindow and view that |
19 // are displayed when the user clicks the favicon or security lock icon. | 19 // are displayed when the user clicks the favicon or security lock icon. |
20 @interface WebsiteSettingsBubbleController : BaseBubbleController { | 20 @interface WebsiteSettingsBubbleController : BaseBubbleController { |
21 @private | 21 @private |
22 content::WebContents* webContents_; | 22 content::WebContents* webContents_; |
23 | 23 |
24 scoped_nsobject<NSView> contentView_; | 24 base::scoped_nsobject<NSView> contentView_; |
25 scoped_nsobject<NSSegmentedControl> segmentedControl_; | 25 base::scoped_nsobject<NSSegmentedControl> segmentedControl_; |
26 scoped_nsobject<NSTabView> tabView_; | 26 base::scoped_nsobject<NSTabView> tabView_; |
27 | 27 |
28 // Displays the web site identity. | 28 // Displays the web site identity. |
29 NSTextField* identityField_; | 29 NSTextField* identityField_; |
30 | 30 |
31 // Display the identity status (e.g. verified, not verified). | 31 // Display the identity status (e.g. verified, not verified). |
32 NSTextField* identityStatusField_; | 32 NSTextField* identityStatusField_; |
33 | 33 |
34 // The main content view for the Permissions tab. | 34 // The main content view for the Permissions tab. |
35 NSView* permissionsTabContentView_; | 35 NSView* permissionsTabContentView_; |
36 | 36 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; | 121 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; |
122 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; | 122 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; |
123 virtual void SetSelectedTab(TabId tab_id) OVERRIDE; | 123 virtual void SetSelectedTab(TabId tab_id) OVERRIDE; |
124 | 124 |
125 private: | 125 private: |
126 // The Cocoa controller for the bubble UI. | 126 // The Cocoa controller for the bubble UI. |
127 WebsiteSettingsBubbleController* bubble_controller_; | 127 WebsiteSettingsBubbleController* bubble_controller_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); | 129 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); |
130 }; | 130 }; |
OLD | NEW |