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

Side by Side Diff: ui/gfx/mojo/buffer_types_struct_traits.cc

Issue 2694923003: Rename buffer_types_traits.{cc,h} to match normal conventions. (Closed)
Patch Set: Created 3 years, 10 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/gfx/mojo/buffer_types_struct_traits.h ('k') | ui/gfx/mojo/buffer_types_traits.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/gfx/mojo/buffer_types_traits.h" 5 #include "ui/gfx/mojo/buffer_types_struct_traits.h"
6 6
7 #include "mojo/public/cpp/system/platform_handle.h" 7 #include "mojo/public/cpp/system/platform_handle.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 void* StructTraits<gfx::mojom::NativePixmapHandleDataView, 11 void* StructTraits<gfx::mojom::NativePixmapHandleDataView,
12 gfx::NativePixmapHandle>:: 12 gfx::NativePixmapHandle>::
13 SetUpContext(const gfx::NativePixmapHandle& pixmap_handle) { 13 SetUpContext(const gfx::NativePixmapHandle& pixmap_handle) {
14 return new PixmapHandleFdList(); 14 return new PixmapHandleFdList();
15 } 15 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 mojo::UnwrapMachPort(data.TakeMachPort(), &mach_port); 157 mojo::UnwrapMachPort(data.TakeMachPort(), &mach_port);
158 if (unwrap_result != MOJO_RESULT_OK) 158 if (unwrap_result != MOJO_RESULT_OK)
159 return false; 159 return false;
160 out->mach_port.reset(mach_port); 160 out->mach_port.reset(mach_port);
161 } 161 }
162 #endif 162 #endif
163 return true; 163 return true;
164 } 164 }
165 165
166 } // namespace mojo 166 } // namespace mojo
OLDNEW
« no previous file with comments | « ui/gfx/mojo/buffer_types_struct_traits.h ('k') | ui/gfx/mojo/buffer_types_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698