| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 xRadius:kWindowCornerRadius | 242 xRadius:kWindowCornerRadius |
| 243 yRadius:kWindowCornerRadius] fill]; | 243 yRadius:kWindowCornerRadius] fill]; |
| 244 } | 244 } |
| 245 | 245 |
| 246 @end | 246 @end |
| 247 | 247 |
| 248 @implementation WindowGripView | 248 @implementation WindowGripView |
| 249 - (WindowGripView*)init { | 249 - (WindowGripView*)init { |
| 250 gfx::Image gripImage = | 250 gfx::Image gripImage = |
| 251 ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( | 251 ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( |
| 252 IDR_SCREEN_CAPTURE_NOTIFICATION_GRIP, | 252 IDR_SCREEN_CAPTURE_NOTIFICATION_GRIP); |
| 253 ui::ResourceBundle::RTL_DISABLED); | |
| 254 self = [super | 253 self = [super |
| 255 initWithFrame:NSMakeRect(0, 0, gripImage.Width(), gripImage.Height())]; | 254 initWithFrame:NSMakeRect(0, 0, gripImage.Width(), gripImage.Height())]; |
| 256 [self setImage:gripImage.ToNSImage()]; | 255 [self setImage:gripImage.ToNSImage()]; |
| 257 return self; | 256 return self; |
| 258 } | 257 } |
| 259 | 258 |
| 260 - (BOOL)mouseDownCanMoveWindow { | 259 - (BOOL)mouseDownCanMoveWindow { |
| 261 return YES; | 260 return YES; |
| 262 } | 261 } |
| 263 @end | 262 @end |
| OLD | NEW |