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

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/app_toolbar_button_cell.mm

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/task_manager_mac.mm ('k') | chrome/browser/ui/cocoa/toolbar/app_toolbar_button_cell_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698