Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: ui/base/clipboard/clipboard_aurax11.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/clipboard/clipboard_aura.cc ('k') | ui/base/clipboard/clipboard_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/base/clipboard/clipboard_aurax11.h" 5 #include "ui/base/clipboard/clipboard_aurax11.h"
6 6
7 #include <X11/extensions/Xfixes.h> 7 #include <X11/extensions/Xfixes.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 10 matching lines...) Expand all
21 #include "third_party/skia/include/core/SkBitmap.h" 21 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "ui/base/clipboard/custom_data_helper.h" 22 #include "ui/base/clipboard/custom_data_helper.h"
23 #include "ui/base/x/selection_owner.h" 23 #include "ui/base/x/selection_owner.h"
24 #include "ui/base/x/selection_requestor.h" 24 #include "ui/base/x/selection_requestor.h"
25 #include "ui/base/x/selection_utils.h" 25 #include "ui/base/x/selection_utils.h"
26 #include "ui/base/x/x11_util.h" 26 #include "ui/base/x/x11_util.h"
27 #include "ui/events/platform/platform_event_dispatcher.h" 27 #include "ui/events/platform/platform_event_dispatcher.h"
28 #include "ui/events/platform/platform_event_observer.h" 28 #include "ui/events/platform/platform_event_observer.h"
29 #include "ui/events/platform/platform_event_source.h" 29 #include "ui/events/platform/platform_event_source.h"
30 #include "ui/gfx/codec/png_codec.h" 30 #include "ui/gfx/codec/png_codec.h"
31 #include "ui/gfx/size.h" 31 #include "ui/gfx/geometry/size.h"
32 #include "ui/gfx/x/x11_atom_cache.h" 32 #include "ui/gfx/x/x11_atom_cache.h"
33 33
34 namespace ui { 34 namespace ui {
35 35
36 namespace { 36 namespace {
37 37
38 const char kClipboard[] = "CLIPBOARD"; 38 const char kClipboard[] = "CLIPBOARD";
39 const char kClipboardManager[] = "CLIPBOARD_MANAGER"; 39 const char kClipboardManager[] = "CLIPBOARD_MANAGER";
40 const char kMimeTypeFilename[] = "chromium/filename"; 40 const char kMimeTypeFilename[] = "chromium/filename";
41 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data"; 41 const char kMimeTypePepperCustomData[] = "chromium/x-pepper-custom-data";
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 if (format.Equals(GetBitmapFormatType())) 930 if (format.Equals(GetBitmapFormatType()))
931 return; 931 return;
932 932
933 std::vector<unsigned char> bytes(data_data, data_data + data_len); 933 std::vector<unsigned char> bytes(data_data, data_data + data_len);
934 scoped_refptr<base::RefCountedMemory> mem( 934 scoped_refptr<base::RefCountedMemory> mem(
935 base::RefCountedBytes::TakeVector(&bytes)); 935 base::RefCountedBytes::TakeVector(&bytes));
936 aurax11_details_->InsertMapping(format.ToString(), mem); 936 aurax11_details_->InsertMapping(format.ToString(), mem);
937 } 937 }
938 938
939 } // namespace ui 939 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aura.cc ('k') | ui/base/clipboard/clipboard_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698