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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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_aurax11.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_
7 7
8 #include "ui/base/clipboard/clipboard.h"
9
10 #include <stddef.h> 8 #include <stddef.h>
11 #include <stdint.h> 9 #include <stdint.h>
12 10
11 #include <memory>
12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "ui/base/clipboard/clipboard.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class ClipboardAuraX11 : public Clipboard { 18 class ClipboardAuraX11 : public Clipboard {
19 private: 19 private:
20 friend class Clipboard; 20 friend class Clipboard;
21 21
22 ClipboardAuraX11(); 22 ClipboardAuraX11();
23 ~ClipboardAuraX11() override; 23 ~ClipboardAuraX11() override;
24 24
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 size_t url_len) override; 57 size_t url_len) override;
58 void WriteWebSmartPaste() override; 58 void WriteWebSmartPaste() override;
59 void WriteBitmap(const SkBitmap& bitmap) override; 59 void WriteBitmap(const SkBitmap& bitmap) override;
60 void WriteData(const FormatType& format, 60 void WriteData(const FormatType& format,
61 const char* data_data, 61 const char* data_data,
62 size_t data_len) override; 62 size_t data_len) override;
63 63
64 // TODO(dcheng): Is this still needed now that each platform clipboard has its 64 // TODO(dcheng): Is this still needed now that each platform clipboard has its
65 // own class derived from Clipboard? 65 // own class derived from Clipboard?
66 class AuraX11Details; 66 class AuraX11Details;
67 scoped_ptr<AuraX11Details> aurax11_details_; 67 std::unique_ptr<AuraX11Details> aurax11_details_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11); 69 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11);
70 }; 70 };
71 71
72 } // namespace ui 72 } // namespace ui
73 73
74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ 74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aura.cc ('k') | ui/base/clipboard/clipboard_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698