forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevicetype_utils.h
26 lines (18 loc) · 934 Bytes
/
devicetype_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_CHROMEOS_DEVICETYPE_UTILS_H_
#define UI_CHROMEOS_DEVICETYPE_UTILS_H_
#include "base/strings/string16.h"
#include "ui/chromeos/ui_chromeos_export.h"
namespace ui {
// Assuming the given localization resources takes a device type parameter, this
// will substitute the appropriate device in (e.g. Chromebook, Chromebox).
UI_CHROMEOS_EXPORT base::string16 SubstituteChromeOSDeviceType(int resource_id);
// Returns the name of the Chrome device type (e.g. Chromebook, Chromebox).
UI_CHROMEOS_EXPORT base::string16 GetChromeOSDeviceName();
// Returns the resource ID for the current Chrome device type (e.g. Chromebook,
// Chromebox).
UI_CHROMEOS_EXPORT int GetChromeOSDeviceTypeResourceId();
} // namespace ui
#endif // UI_CHROMEOS_DEVICETYPE_UTILS_H_