OLD | NEW |
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 Loading... |
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 |
OLD | NEW |