OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/ui/cocoa/toolbar/app_toolbar_button_cell.h" | 5 #import "chrome/browser/ui/cocoa/toolbar/app_toolbar_button_cell.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #import "chrome/browser/ui/cocoa/themed_window.h" | 8 #import "chrome/browser/ui/cocoa/themed_window.h" |
8 #include "ui/gfx/canvas_skia_paint.h" | 9 #include "ui/gfx/canvas_skia_paint.h" |
9 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
10 | 11 |
11 class AppMenuIconPainterDelegateMac : public AppMenuIconPainter::Delegate { | 12 class AppMenuIconPainterDelegateMac : public AppMenuIconPainter::Delegate { |
12 public: | 13 public: |
13 explicit AppMenuIconPainterDelegateMac(NSCell* cell) : cell_(cell) {} | 14 explicit AppMenuIconPainterDelegateMac(NSCell* cell) : cell_(cell) {} |
14 ~AppMenuIconPainterDelegateMac() override {} | 15 ~AppMenuIconPainterDelegateMac() override {} |
15 | 16 |
16 void ScheduleAppMenuIconPaint() override { | 17 void ScheduleAppMenuIconPaint() override { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 73 |
73 - (AppMenuIconPainter::BezelType)currentBezelType { | 74 - (AppMenuIconPainter::BezelType)currentBezelType { |
74 if ([self isHighlighted]) | 75 if ([self isHighlighted]) |
75 return AppMenuIconPainter::BEZEL_PRESSED; | 76 return AppMenuIconPainter::BEZEL_PRESSED; |
76 if ([self isMouseInside]) | 77 if ([self isMouseInside]) |
77 return AppMenuIconPainter::BEZEL_HOVER; | 78 return AppMenuIconPainter::BEZEL_HOVER; |
78 return AppMenuIconPainter::BEZEL_NONE; | 79 return AppMenuIconPainter::BEZEL_NONE; |
79 } | 80 } |
80 | 81 |
81 @end | 82 @end |
OLD | NEW |