- add sources.
[platform/framework/web/crosswalk.git] / src / tools / win / ChromeDebug / ChromeDebug / ProcessCategory.cs
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 using System;
6 using System.Collections.Generic;
7 using System.Linq;
8 using System.Text;
9 using System.Threading.Tasks;
10
11 namespace ChromeDebug {
12   internal enum ProcessCategory {
13     Browser,
14     Renderer,
15     Gpu,
16     Plugin,
17     DelegateExecute,
18     MetroViewer,
19     Service,
20     Other
21   }
22
23   // Defines an extension method for the ProcessCategory enum which converts the enum value into
24   // the group title.
25   internal static class ProcessCategoryExtensions {
26     public static string ToGroupTitle(this ProcessCategory category) {
27       switch (category) {
28       case ProcessCategory.DelegateExecute:
29       return "Delegate Execute";
30       case ProcessCategory.MetroViewer:
31       return "Metro Viewer";
32       default:
33       return category.ToString();
34       }
35     }
36   }
37 }