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 "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 5 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
11 #include "base/memory/scoped_nsobject.h" | 11 #include "base/memory/scoped_nsobject.h" |
12 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
13 #include "chrome/browser/bookmarks/bookmark_model.h" | 13 #include "chrome/browser/bookmarks/bookmark_model.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
16 #include "grit/ui_resources_standard.h" | 16 #include "grit/ui_resources.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 #include "ui/gfx/mac/nsimage_cache.h" | 18 #include "ui/gfx/mac/nsimage_cache.h" |
19 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 19 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
20 | 20 |
21 NSString* const kBookmarkDictionaryListPboardType = | 21 NSString* const kBookmarkDictionaryListPboardType = |
22 @"BookmarkDictionaryListPboardType"; | 22 @"BookmarkDictionaryListPboardType"; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // An unofficial standard pasteboard title type to be provided alongside the | 26 // An unofficial standard pasteboard title type to be provided alongside the |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 [window dragImage:drag_image | 429 [window dragImage:drag_image |
430 at:position | 430 at:position |
431 offset:NSZeroSize | 431 offset:NSZeroSize |
432 event:drag_event | 432 event:drag_event |
433 pasteboard:[NSPasteboard pasteboardWithName:NSDragPboard] | 433 pasteboard:[NSPasteboard pasteboardWithName:NSDragPboard] |
434 source:nil | 434 source:nil |
435 slideBack:YES]; | 435 slideBack:YES]; |
436 } | 436 } |
437 | 437 |
438 } // namespace bookmark_pasteboard_helper_mac | 438 } // namespace bookmark_pasteboard_helper_mac |
OLD | NEW |