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

Side by Side Diff: ui/base/clipboard/scoped_clipboard_writer.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_win.cc ('k') | ui/base/cursor/cursor_loader_x11.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 // This file implements the ScopedClipboardWriter class. Documentation on its 5 // This file implements the ScopedClipboardWriter class. Documentation on its
6 // purpose can be found in our header. Documentation on the format of the 6 // purpose can be found in our header. Documentation on the format of the
7 // parameters for each clipboard target can be found in clipboard.h. 7 // parameters for each clipboard target can be found in clipboard.h.
8 8
9 #include "ui/base/clipboard/scoped_clipboard_writer.h" 9 #include "ui/base/clipboard/scoped_clipboard_writer.h"
10 10
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/geometry/size.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 ScopedClipboardWriter::ScopedClipboardWriter(ClipboardType type) : type_(type) { 18 ScopedClipboardWriter::ScopedClipboardWriter(ClipboardType type) : type_(type) {
19 } 19 }
20 20
21 ScopedClipboardWriter::~ScopedClipboardWriter() { 21 ScopedClipboardWriter::~ScopedClipboardWriter() {
22 if (!objects_.empty()) 22 if (!objects_.empty())
23 ui::Clipboard::GetForCurrentThread()->WriteObjects(type_, objects_); 23 ui::Clipboard::GetForCurrentThread()->WriteObjects(type_, objects_);
24 } 24 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 objects_[Clipboard::CBF_TEXT] = parameters; 135 objects_[Clipboard::CBF_TEXT] = parameters;
136 136
137 if (is_url) { 137 if (is_url) {
138 url_text_ = utf8_text; 138 url_text_ = utf8_text;
139 } else { 139 } else {
140 url_text_.clear(); 140 url_text_.clear();
141 } 141 }
142 } 142 }
143 143
144 } // namespace ui 144 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/base/cursor/cursor_loader_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698