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

Side by Side Diff: chrome/browser/cocoa/page_info_window_mac.h

Issue 3560004: Refactor the code for loading icons into the PageInfoModel. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: cleanup Created 10 years, 2 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/page_info_bubble_controller_unittest.mm ('k') | chrome/browser/cocoa/page_info_window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698