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

Side by Side Diff: ui/app_list/cocoa/app_list_window_controller.mm

Issue 15303003: UI Updates for OSX App Launcher: truncate titles, window shadow. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: need to set Created 7 years, 7 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
« no previous file with comments | « no previous file | ui/app_list/cocoa/apps_grid_view_item.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/app_list/cocoa/app_list_window_controller.h" 5 #import "ui/app_list/cocoa/app_list_window_controller.h"
6 6
7 #include "ui/app_list/app_list_view_delegate.h" 7 #include "ui/app_list/app_list_view_delegate.h"
8 #import "ui/app_list/cocoa/app_list_view_controller.h" 8 #import "ui/app_list/cocoa/app_list_view_controller.h"
9 #import "ui/app_list/cocoa/apps_grid_controller.h" 9 #import "ui/app_list/cocoa/apps_grid_controller.h"
10 #include "ui/base/cocoa/window_size_constants.h" 10 #include "ui/base/cocoa/window_size_constants.h"
(...skipping 19 matching lines...) Expand all
30 30
31 - (id)init { 31 - (id)init {
32 scoped_nsobject<NSWindow> controlledWindow( 32 scoped_nsobject<NSWindow> controlledWindow(
33 [[AppListWindow alloc] initWithContentRect:ui::kWindowSizeDeterminedLater 33 [[AppListWindow alloc] initWithContentRect:ui::kWindowSizeDeterminedLater
34 styleMask:NSBorderlessWindowMask 34 styleMask:NSBorderlessWindowMask
35 backing:NSBackingStoreBuffered 35 backing:NSBackingStoreBuffered
36 defer:NO]); 36 defer:NO]);
37 [controlledWindow setReleasedWhenClosed:NO]; 37 [controlledWindow setReleasedWhenClosed:NO];
38 [controlledWindow setBackgroundColor:[NSColor clearColor]]; 38 [controlledWindow setBackgroundColor:[NSColor clearColor]];
39 [controlledWindow setOpaque:NO]; 39 [controlledWindow setOpaque:NO];
40 [controlledWindow setHasShadow:NO]; 40 [controlledWindow setHasShadow:YES];
41 41
42 if ((self = [super initWithWindow:controlledWindow])) { 42 if ((self = [super initWithWindow:controlledWindow])) {
43 appListViewController_.reset([[AppListViewController alloc] init]); 43 appListViewController_.reset([[AppListViewController alloc] init]);
44 [[self window] setFrame:[[appListViewController_ view] bounds] 44 [[self window] setFrame:[[appListViewController_ view] bounds]
45 display:NO]; 45 display:NO];
46 [[self window] setContentView:[appListViewController_ view]]; 46 [[self window] setContentView:[appListViewController_ view]];
47 [[self window] setDelegate:self]; 47 [[self window] setDelegate:self];
48 } 48 }
49 return self; 49 return self;
50 } 50 }
51 51
52 - (AppListViewController*)appListViewController { 52 - (AppListViewController*)appListViewController {
53 return appListViewController_; 53 return appListViewController_;
54 } 54 }
55 55
56 - (void)windowDidResignMain:(NSNotification*)notification { 56 - (void)windowDidResignMain:(NSNotification*)notification {
57 if ([appListViewController_ delegate]) 57 if ([appListViewController_ delegate])
58 [appListViewController_ delegate]->Dismiss(); 58 [appListViewController_ delegate]->Dismiss();
59 } 59 }
60 60
61 @end 61 @end
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/cocoa/apps_grid_view_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698