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

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

Issue 2639313002: Migrate desktop Linux to histogram_macros.h include. (Closed)
Patch Set: Created 3 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 | « media/audio/linux/audio_manager_linux.cc ('k') | ui/base/x/x11_util.cc » ('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/Xatom.h> 7 #include <X11/Xatom.h>
8 #include <X11/extensions/Xfixes.h> 8 #include <X11/extensions/Xfixes.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <limits> 11 #include <limits>
12 #include <list> 12 #include <list>
13 #include <memory> 13 #include <memory>
14 #include <set> 14 #include <set>
15 15
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted_memory.h" 19 #include "base/memory/ref_counted_memory.h"
20 #include "base/memory/singleton.h" 20 #include "base/memory/singleton.h"
21 #include "base/metrics/histogram.h" 21 #include "base/metrics/histogram_macros.h"
22 #include "base/stl_util.h" 22 #include "base/stl_util.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
25 #include "ui/base/clipboard/clipboard_monitor.h" 25 #include "ui/base/clipboard/clipboard_monitor.h"
26 #include "ui/base/clipboard/custom_data_helper.h" 26 #include "ui/base/clipboard/custom_data_helper.h"
27 #include "ui/base/x/selection_owner.h" 27 #include "ui/base/x/selection_owner.h"
28 #include "ui/base/x/selection_requestor.h" 28 #include "ui/base/x/selection_requestor.h"
29 #include "ui/base/x/selection_utils.h" 29 #include "ui/base/x/selection_utils.h"
30 #include "ui/base/x/x11_util.h" 30 #include "ui/base/x/x11_util.h"
31 #include "ui/base/x/x11_window_event_manager.h" 31 #include "ui/base/x/x11_window_event_manager.h"
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 if (format.Equals(GetBitmapFormatType())) 942 if (format.Equals(GetBitmapFormatType()))
943 return; 943 return;
944 944
945 std::vector<unsigned char> bytes(data_data, data_data + data_len); 945 std::vector<unsigned char> bytes(data_data, data_data + data_len);
946 scoped_refptr<base::RefCountedMemory> mem( 946 scoped_refptr<base::RefCountedMemory> mem(
947 base::RefCountedBytes::TakeVector(&bytes)); 947 base::RefCountedBytes::TakeVector(&bytes));
948 aurax11_details_->InsertMapping(format.ToString(), mem); 948 aurax11_details_->InsertMapping(format.ToString(), mem);
949 } 949 }
950 950
951 } // namespace ui 951 } // namespace ui
OLDNEW
« no previous file with comments | « media/audio/linux/audio_manager_linux.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698