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

Side by Side Diff: content/renderer/renderer_clipboard_delegate.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 | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | content/shell/browser/shell.h » ('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 provides the embedder's side of the Clipboard interface. 5 // This file provides the embedder's side of the Clipboard interface.
6 6
7 #include "content/renderer/renderer_clipboard_delegate.h" 7 #include "content/renderer/renderer_clipboard_delegate.h"
8 8
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/numerics/safe_math.h" 10 #include "base/numerics/safe_math.h"
11 #include "content/common/clipboard_messages.h" 11 #include "content/common/clipboard_messages.h"
12 #include "content/public/renderer/content_renderer_client.h" 12 #include "content/public/renderer/content_renderer_client.h"
13 #include "content/renderer/render_thread_impl.h" 13 #include "content/renderer/render_thread_impl.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/base/clipboard/clipboard.h" 15 #include "ui/base/clipboard/clipboard.h"
16 #include "ui/gfx/size.h" 16 #include "ui/gfx/geometry/size.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 RendererClipboardDelegate::RendererClipboardDelegate() { 20 RendererClipboardDelegate::RendererClipboardDelegate() {
21 } 21 }
22 22
23 uint64 RendererClipboardDelegate::GetSequenceNumber(ui::ClipboardType type) { 23 uint64 RendererClipboardDelegate::GetSequenceNumber(ui::ClipboardType type) {
24 uint64 sequence_number = 0; 24 uint64 sequence_number = 0;
25 RenderThreadImpl::current()->Send( 25 RenderThreadImpl::current()->Send(
26 new ClipboardHostMsg_GetSequenceNumber(type, &sequence_number)); 26 new ClipboardHostMsg_GetSequenceNumber(type, &sequence_number));
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 clipboard_type, size, shared_buf->handle())); 158 clipboard_type, size, shared_buf->handle()));
159 return true; 159 return true;
160 } 160 }
161 161
162 void RendererClipboardDelegate::CommitWrite(ui::ClipboardType clipboard_type) { 162 void RendererClipboardDelegate::CommitWrite(ui::ClipboardType clipboard_type) {
163 RenderThreadImpl::current()->Send( 163 RenderThreadImpl::current()->Send(
164 new ClipboardHostMsg_CommitWrite(clipboard_type)); 164 new ClipboardHostMsg_CommitWrite(clipboard_type));
165 } 165 }
166 166
167 } // namespace content 167 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698