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/extensions/browser_actions_container_view.h" | 5 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #import "chrome/browser/ui/cocoa/view_id_util.h" | 9 #import "chrome/browser/ui/cocoa/view_id_util.h" |
11 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
12 #include "ui/base/cocoa/appkit_utils.h" | 11 #include "ui/base/cocoa/appkit_utils.h" |
13 #include "ui/events/keycodes/keyboard_code_conversion_mac.h" | 12 #include "ui/events/keycodes/keyboard_code_conversion_mac.h" |
14 | 13 |
15 NSString* const kBrowserActionGrippyDragStartedNotification = | 14 NSString* const kBrowserActionGrippyDragStartedNotification = |
16 @"BrowserActionGrippyDragStartedNotification"; | 15 @"BrowserActionGrippyDragStartedNotification"; |
17 NSString* const kBrowserActionGrippyDraggingNotification = | 16 NSString* const kBrowserActionGrippyDraggingNotification = |
18 @"BrowserActionGrippyDraggingNotification"; | 17 @"BrowserActionGrippyDraggingNotification"; |
19 NSString* const kBrowserActionGrippyDragFinishedNotification = | 18 NSString* const kBrowserActionGrippyDragFinishedNotification = |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 retVal = [NSCursor resizeLeftRightCursor]; | 362 retVal = [NSCursor resizeLeftRightCursor]; |
364 } | 363 } |
365 return retVal; | 364 return retVal; |
366 } | 365 } |
367 | 366 |
368 - (CGFloat)maxAllowedWidth { | 367 - (CGFloat)maxAllowedWidth { |
369 return delegate_ ? delegate_->GetMaxAllowedWidth() : CGFLOAT_MAX; | 368 return delegate_ ? delegate_->GetMaxAllowedWidth() : CGFLOAT_MAX; |
370 } | 369 } |
371 | 370 |
372 @end | 371 @end |
OLD | NEW |