OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/toolbar_controller.h" | 5 #import "chrome/browser/cocoa/toolbar_controller.h" |
6 | 6 |
7 #include "base/mac_util.h" | 7 #include "base/mac_util.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
10 #import "chrome/browser/cocoa/autocomplete_text_field.h" | 10 #import "chrome/browser/cocoa/autocomplete_text_field.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 withEvent:[NSApp currentEvent] | 366 withEvent:[NSApp currentEvent] |
367 forView:pageButton_]; | 367 forView:pageButton_]; |
368 } | 368 } |
369 | 369 |
370 - (IBAction)showWrenchMenu:(id)sender { | 370 - (IBAction)showWrenchMenu:(id)sender { |
371 [NSMenu popUpContextMenu:wrenchMenu_ | 371 [NSMenu popUpContextMenu:wrenchMenu_ |
372 withEvent:[NSApp currentEvent] | 372 withEvent:[NSApp currentEvent] |
373 forView:wrenchButton_]; | 373 forView:wrenchButton_]; |
374 } | 374 } |
375 | 375 |
| 376 - (NSRect)starButtonInWindowCoordinates { |
| 377 return [[[starButton_ window] contentView] convertRect:[starButton_ bounds] |
| 378 fromView:starButton_]; |
| 379 } |
| 380 |
| 381 |
376 @end | 382 @end |
OLD | NEW |