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

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

Issue 900613003: Mac: Make it easier for views to correctly draw with a theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gyp
Patch Set: Created 5 years, 10 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) 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 #include "chrome/browser/ui/cocoa/floating_bar_backing_view.h" 5 #include "chrome/browser/ui/cocoa/floating_bar_backing_view.h"
6 6
7 #import "chrome/browser/ui/cocoa/framed_browser_window.h" 7 #import "chrome/browser/ui/cocoa/framed_browser_window.h"
8 #import "ui/base/cocoa/appkit_utils.h" 8 #import "ui/base/cocoa/appkit_utils.h"
9 9
10 @implementation FloatingBarBackingView 10 @implementation FloatingBarBackingView
(...skipping 27 matching lines...) Expand all
38 - (void)otherMouseDragged:(NSEvent*)event {} 38 - (void)otherMouseDragged:(NSEvent*)event {}
39 39
40 // Eat this too, except that ... 40 // Eat this too, except that ...
41 - (void)mouseUp:(NSEvent*)event { 41 - (void)mouseUp:(NSEvent*)event {
42 // a double-click in the blank area should try to minimize, to be consistent 42 // a double-click in the blank area should try to minimize, to be consistent
43 // with double-clicks on the contiguous tab strip area. (It'll fail and beep.) 43 // with double-clicks on the contiguous tab strip area. (It'll fail and beep.)
44 if ([event clickCount] == 2) 44 if ([event clickCount] == 2)
45 ui::WindowTitlebarReceivedDoubleClick([self window], self); 45 ui::WindowTitlebarReceivedDoubleClick([self window], self);
46 } 46 }
47 47
48 // ThemedWindowDrawing implementation.
49
50 - (void)windowDidChangeTheme {
51 [self setNeedsDisplay:YES];
52 }
53
54 - (void)windowDidChangeActive {
55 [self setNeedsDisplay:YES];
56 }
57
48 @end // @implementation FloatingBarBackingView 58 @end // @implementation FloatingBarBackingView
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698