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

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

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
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 #include "chrome/browser/ui/cocoa/floating_bar_backing_view.h" 5 #include "chrome/browser/ui/cocoa/floating_bar_backing_view.h"
6 6
7 #include "base/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #import "chrome/browser/ui/cocoa/browser_frame_view.h" 8 #import "chrome/browser/ui/cocoa/browser_frame_view.h"
9 9
10 @implementation FloatingBarBackingView 10 @implementation FloatingBarBackingView
11 11
12 - (void)drawRect:(NSRect)rect { 12 - (void)drawRect:(NSRect)rect {
13 NSWindow* window = [self window]; 13 NSWindow* window = [self window];
14 BOOL isMainWindow = [window isMainWindow]; 14 BOOL isMainWindow = [window isMainWindow];
15 15
16 if (isMainWindow) 16 if (isMainWindow)
17 [[NSColor windowFrameColor] set]; 17 [[NSColor windowFrameColor] set];
(...skipping 19 matching lines...) Expand all
37 - (void)mouseMoved:(NSEvent*)event {} 37 - (void)mouseMoved:(NSEvent*)event {}
38 - (void)mouseDragged:(NSEvent*)event {} 38 - (void)mouseDragged:(NSEvent*)event {}
39 - (void)rightMouseDragged:(NSEvent*)event {} 39 - (void)rightMouseDragged:(NSEvent*)event {}
40 - (void)otherMouseDragged:(NSEvent*)event {} 40 - (void)otherMouseDragged:(NSEvent*)event {}
41 41
42 // Eat this too, except that ... 42 // Eat this too, except that ...
43 - (void)mouseUp:(NSEvent*)event { 43 - (void)mouseUp:(NSEvent*)event {
44 // a double-click in the blank area should try to minimize, to be consistent 44 // a double-click in the blank area should try to minimize, to be consistent
45 // with double-clicks on the contiguous tab strip area. (It'll fail and beep.) 45 // with double-clicks on the contiguous tab strip area. (It'll fail and beep.)
46 if ([event clickCount] == 2 && 46 if ([event clickCount] == 2 &&
47 mac_util::ShouldWindowsMiniaturizeOnDoubleClick()) 47 base::mac::ShouldWindowsMiniaturizeOnDoubleClick())
48 [[self window] performMiniaturize:self]; 48 [[self window] performMiniaturize:self];
49 } 49 }
50 50
51 @end // @implementation FloatingBarBackingView 51 @end // @implementation FloatingBarBackingView
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/first_run_dialog.mm ('k') | chrome/browser/ui/cocoa/font_language_settings_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698