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

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

Issue 443026: Merge r32598 to the 249 branch.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/nibs/About.xib ('k') | chrome/browser/cocoa/about_window_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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_ABOUT_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_ABOUT_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_ABOUT_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_ABOUT_WINDOW_CONTROLLER_H_
7 7
8 #import <AppKit/AppKit.h> 8 #import <AppKit/AppKit.h>
9 9
10 @class BackgroundTileView; 10 @class BackgroundTileView;
11 class Profile; 11 class Profile;
12 12
13 // kUserClosedAboutNotification is the name of the notification posted when 13 // This simple subclass of |NSTextView| just doesn't show the (text) cursor
14 // the About window is closed. 14 // (|NSTextView| displays the cursor with full keyboard accessibility enabled).
15 extern const NSString* const kUserClosedAboutNotification; 15 @interface AboutLegalTextView : NSTextView
16 @end
16 17
17 // A window controller that handles the About box. 18 // A window controller that handles the About box.
18 @interface AboutWindowController : NSWindowController { 19 @interface AboutWindowController : NSWindowController {
19 @private 20 @private
20 IBOutlet NSTextField* version_; 21 IBOutlet NSTextField* version_;
21 IBOutlet BackgroundTileView* backgroundView_; 22 IBOutlet BackgroundTileView* backgroundView_;
22 IBOutlet NSImageView* logoView_; 23 IBOutlet NSImageView* logoView_;
23 IBOutlet NSView* legalBlock_; 24 IBOutlet NSView* legalBlock_;
24 IBOutlet NSTextView* legalText_; 25 IBOutlet AboutLegalTextView* legalText_;
25 IBOutlet NSView* updateBlock_; // Holds everything related to updates 26 IBOutlet NSView* updateBlock_; // Holds everything related to updates
26 IBOutlet NSProgressIndicator* spinner_; 27 IBOutlet NSProgressIndicator* spinner_;
27 IBOutlet NSImageView* updateStatusIndicator_; 28 IBOutlet NSImageView* updateStatusIndicator_;
28 IBOutlet NSTextField* updateText_; 29 IBOutlet NSTextField* updateText_;
29 IBOutlet NSButton* updateNowButton_; 30 IBOutlet NSButton* updateNowButton_;
30 31
31 BOOL updateTriggered_; // Has an update ever been triggered? 32 BOOL updateTriggered_; // Has an update ever been triggered?
32 Profile* profile_; // Weak, probably the default profile. 33 Profile* profile_; // Weak, probably the default profile.
33 } 34 }
34 35
(...skipping 11 matching lines...) Expand all
46 - (NSTextView*)legalText; 47 - (NSTextView*)legalText;
47 - (NSButton*)updateButton; 48 - (NSButton*)updateButton;
48 - (NSTextField*)updateText; 49 - (NSTextField*)updateText;
49 50
50 // Returns an NSAttributedString that contains locale-specific legal text. 51 // Returns an NSAttributedString that contains locale-specific legal text.
51 + (NSAttributedString*)legalTextBlock; 52 + (NSAttributedString*)legalTextBlock;
52 53
53 @end // @interface AboutWindowController(JustForTesting) 54 @end // @interface AboutWindowController(JustForTesting)
54 55
55 #endif // CHROME_BROWSER_COCOA_ABOUT_WINDOW_CONTROLLER_H_ 56 #endif // CHROME_BROWSER_COCOA_ABOUT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/About.xib ('k') | chrome/browser/cocoa/about_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698