OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/new_tab_button.h" | 5 #import "chrome/browser/ui/cocoa/new_tab_button.h" |
| 6 |
6 #import "chrome/browser/ui/cocoa/image_button_cell.h" | 7 #import "chrome/browser/ui/cocoa/image_button_cell.h" |
7 #include "grit/theme_resources.h" | 8 #include "grit/theme_resources.h" |
8 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
9 | 10 |
10 // A simple override of the ImageButtonCell to disable handling of | 11 // A simple override of the ImageButtonCell to disable handling of |
11 // -mouseEntered. | 12 // -mouseEntered. |
12 @interface NewTabButtonCell : ImageButtonCell | 13 @interface NewTabButtonCell : ImageButtonCell |
13 | 14 |
14 - (void)mouseEntered:(NSEvent*)theEvent; | 15 - (void)mouseEntered:(NSEvent*)theEvent; |
15 | 16 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 60 |
60 - (void)windowDidChangeTheme { | 61 - (void)windowDidChangeTheme { |
61 [self setNeedsDisplay:YES]; | 62 [self setNeedsDisplay:YES]; |
62 } | 63 } |
63 | 64 |
64 - (void)windowDidChangeActive { | 65 - (void)windowDidChangeActive { |
65 [self setNeedsDisplay:YES]; | 66 [self setNeedsDisplay:YES]; |
66 } | 67 } |
67 | 68 |
68 @end | 69 @end |
OLD | NEW |