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 <cmath> | 5 #include <cmath> |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/location_bar/button_decoration.h" | 7 #import "chrome/browser/ui/cocoa/location_bar/button_decoration.h" |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 } | 162 } |
163 | 163 |
164 bool ButtonDecoration::AcceptsMousePress() { | 164 bool ButtonDecoration::AcceptsMousePress() { |
165 return true; | 165 return true; |
166 } | 166 } |
167 | 167 |
168 bool ButtonDecoration::IsDraggable() { | 168 bool ButtonDecoration::IsDraggable() { |
169 return false; | 169 return false; |
170 } | 170 } |
171 | 171 |
172 bool ButtonDecoration::OnMousePressed(NSRect frame) { | 172 bool ButtonDecoration::OnMousePressed(NSRect frame, NSPoint location) { |
173 return false; | 173 return false; |
174 } | 174 } |
175 | 175 |
176 ButtonDecoration* ButtonDecoration::AsButtonDecoration() { | 176 ButtonDecoration* ButtonDecoration::AsButtonDecoration() { |
177 return this; | 177 return this; |
178 } | 178 } |
OLD | NEW |