summaryrefslogtreecommitdiffstats
path: root/chromium/ui/base/layout.h
blob: f19d5687a25feb01533a8d03f2157af13a9653a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_BASE_LAYOUT_H_
#define UI_BASE_LAYOUT_H_

#include "base/component_export.h"
#include "ui/gfx/native_widget_types.h"

namespace ui {

// Returns the ResourceScaleFactor used by `view`.
COMPONENT_EXPORT(UI_BASE)
float GetScaleFactorForNativeView(gfx::NativeView view);

}  // namespace ui

#endif  // UI_BASE_LAYOUT_H_