OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_PAGE_INFO_WINDOW_MAC_H_ | 5 #ifndef CHROME_BROWSER_COCOA_PAGE_INFO_WINDOW_MAC_H_ |
6 #define CHROME_BROWSER_COCOA_PAGE_INFO_WINDOW_MAC_H_ | 6 #define CHROME_BROWSER_COCOA_PAGE_INFO_WINDOW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 PageInfoWindowMac(PageInfoWindowController* controller, | 51 PageInfoWindowMac(PageInfoWindowController* controller, |
52 Profile* profile, | 52 Profile* profile, |
53 const GURL& url, | 53 const GURL& url, |
54 const NavigationEntry::SSLStatus& ssl, | 54 const NavigationEntry::SSLStatus& ssl, |
55 bool show_history); | 55 bool show_history); |
56 | 56 |
57 // Testing constructor. DO NOT USE. | 57 // Testing constructor. DO NOT USE. |
58 PageInfoWindowMac(PageInfoWindowController* controller, | 58 PageInfoWindowMac(PageInfoWindowController* controller, |
59 PageInfoModel* model); | 59 PageInfoModel* model); |
60 | 60 |
61 // Shared constructor initialization. | |
62 void Init(); | |
63 | |
64 // Dynamically creates the window's content section. | 61 // Dynamically creates the window's content section. |
65 void LayoutSections(); | 62 void LayoutSections(); |
66 | 63 |
67 // Shows the actual window. | 64 // Shows the actual window. |
68 void Show(); | 65 void Show(); |
69 | 66 |
70 // The window controller that manages the memory and window reference. | 67 // The window controller that manages the memory and window reference. |
71 PageInfoWindowController* controller_; // WEAK, owns us. | 68 PageInfoWindowController* controller_; // WEAK, owns us. |
72 | 69 |
73 // The platform-independent model for the info window. | 70 // The platform-independent model for the info window. |
74 scoped_ptr<PageInfoModel> model_; | 71 scoped_ptr<PageInfoModel> model_; |
75 | 72 |
76 // Reference to the good and bad images that are placed within the UI. | |
77 scoped_nsobject<NSImage> good_image_; | |
78 scoped_nsobject<NSImage> bad_image_; | |
79 | |
80 // The certificate ID for the page, 0 if the page is not over HTTPS. | 73 // The certificate ID for the page, 0 if the page is not over HTTPS. |
81 int cert_id_; | 74 int cert_id_; |
82 | 75 |
83 DISALLOW_COPY_AND_ASSIGN(PageInfoWindowMac); | 76 DISALLOW_COPY_AND_ASSIGN(PageInfoWindowMac); |
84 }; | 77 }; |
85 | 78 |
86 #endif // CHROME_BROWSER_COCOA_PAGE_INFO_WINDOW_MAC_H_ | 79 #endif // CHROME_BROWSER_COCOA_PAGE_INFO_WINDOW_MAC_H_ |
OLD | NEW |