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

Side by Side Diff: chrome/browser/ui/cocoa/web_intent_sheet_controller.mm

Issue 10800062: [Web Intents, OSX] White background for picker dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 "chrome/browser/ui/cocoa/web_intent_sheet_controller.h" 5 #import "chrome/browser/ui/cocoa/web_intent_sheet_controller.h"
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // This simple NSView subclass is used as the single subview of the page info 86 // This simple NSView subclass is used as the single subview of the page info
87 // bubble's window's contentView. Drawing is flipped so that layout of the 87 // bubble's window's contentView. Drawing is flipped so that layout of the
88 // sections is easier. Apple recommends flipping the coordinate origin when 88 // sections is easier. Apple recommends flipping the coordinate origin when
89 // doing a lot of text layout because it's more natural. 89 // doing a lot of text layout because it's more natural.
90 @interface WebIntentsContentView : NSView 90 @interface WebIntentsContentView : NSView
91 @end 91 @end
92 @implementation WebIntentsContentView 92 @implementation WebIntentsContentView
93 - (BOOL)isFlipped { 93 - (BOOL)isFlipped {
94 return YES; 94 return YES;
95 } 95 }
96
97 - (void)drawRect:(NSRect)rect {
98 [[NSColor colorWithCalibratedWhite:1.0 alpha:1.0] set];
Nico 2012/07/21 00:43:30 [[NSColor whiteColor] set]
99 NSRectFill(rect);
100 }
96 @end 101 @end
97 102
98 // NSImageView subclassed to allow fading the alpha value of the image to 103 // NSImageView subclassed to allow fading the alpha value of the image to
99 // indicate an inactive/disabled extension. 104 // indicate an inactive/disabled extension.
100 @interface DimmableImageView : NSImageView { 105 @interface DimmableImageView : NSImageView {
101 @private 106 @private
102 CGFloat alpha; 107 CGFloat alpha;
103 } 108 }
104 109
105 - (void)setEnabled:(BOOL)enabled; 110 - (void)setEnabled:(BOOL)enabled;
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 // Requests to both the WebIntentService and the Chrome Web Store have 916 // Requests to both the WebIntentService and the Chrome Web Store have
912 // completed. If there are any services, installed or suggested, there's 917 // completed. If there are any services, installed or suggested, there's
913 // nothing to do. 918 // nothing to do.
914 DCHECK(model_); 919 DCHECK(model_);
915 isEmpty_ = !model_->GetInstalledServiceCount() && 920 isEmpty_ = !model_->GetInstalledServiceCount() &&
916 !model_->GetSuggestedExtensionCount(); 921 !model_->GetSuggestedExtensionCount();
917 [self performLayoutWithModel:model_]; 922 [self performLayoutWithModel:model_];
918 } 923 }
919 924
920 @end // WebIntentPickerSheetController 925 @end // WebIntentPickerSheetController
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698