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

Side by Side Diff: ash/public/interfaces/wallpaper_struct_traits.h

Issue 2642973006: Include AIDL files in the presubmit check for IPC security. (Closed)
Patch Set: Move `using` statements. 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 | « ash/public/interfaces/wallpaper_enum_traits.h ('k') | chrome/common/BUILD.gn » ('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 #ifndef ASH_PUBLIC_INTERFACES_WALLPAPER_ENUM_TRAITS_H_ 5 #ifndef ASH_PUBLIC_INTERFACES_WALLPAPER_STRUCT_TRAITS_H_
6 #define ASH_PUBLIC_INTERFACES_WALLPAPER_ENUM_TRAITS_H_ 6 #define ASH_PUBLIC_INTERFACES_WALLPAPER_STRUCT_TRAITS_H_
7 7
8 #include "ash/public/interfaces/wallpaper.mojom.h" 8 #include "ash/public/interfaces/wallpaper.mojom.h"
9 #include "components/wallpaper/wallpaper_layout.h" 9 #include "components/wallpaper/wallpaper_layout.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 template <> 13 template <>
14 struct EnumTraits<ash::mojom::WallpaperLayout, wallpaper::WallpaperLayout> { 14 struct EnumTraits<ash::mojom::WallpaperLayout, wallpaper::WallpaperLayout> {
15 static ash::mojom::WallpaperLayout ToMojom(wallpaper::WallpaperLayout input) { 15 static ash::mojom::WallpaperLayout ToMojom(wallpaper::WallpaperLayout input) {
16 switch (input) { 16 switch (input) {
(...skipping 28 matching lines...) Expand all
45 *out = wallpaper::WALLPAPER_LAYOUT_TILE; 45 *out = wallpaper::WALLPAPER_LAYOUT_TILE;
46 return true; 46 return true;
47 } 47 }
48 NOTREACHED(); 48 NOTREACHED();
49 return false; 49 return false;
50 } 50 }
51 }; 51 };
52 52
53 } // namespace mojo 53 } // namespace mojo
54 54
55 #endif // ASH_PUBLIC_INTERFACES_WALLPAPER_ENUM_TRAITS_H_ 55 #endif // ASH_PUBLIC_INTERFACES_WALLPAPER_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « ash/public/interfaces/wallpaper_enum_traits.h ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698