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

Unified Diff: ui/aura/dip_util.h

Issue 10221028: Move DIP translation from ui/aura to ui/compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable tests that doesn't run on bots Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/dip_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/dip_util.h
diff --git a/ui/aura/dip_util.h b/ui/aura/dip_util.h
deleted file mode 100644
index 4a5bfef1259ff1d5c978a928570fd0c4f8f11d2c..0000000000000000000000000000000000000000
--- a/ui/aura/dip_util.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 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_AURA_DIP_UTIL_H_
-#define UI_AURA_DIP_UTIL_H_
-#pragma once
-
-#include "ui/aura/aura_export.h"
-
-namespace gfx {
-class Point;
-class Size;
-class Rect;
-} // namespace gfx
-
-namespace aura {
-class Window;
-
-#if defined(ENABLE_DIP)
-AURA_EXPORT float GetMonitorScaleFactor(const Window* window);
-#endif
-
-// Utility functions that convert point/size/rect between
-// DIP and pixel coordinates system.
-AURA_EXPORT gfx::Point ConvertPointToDIP(const Window* window,
- const gfx::Point& point_in_pixel);
-AURA_EXPORT gfx::Size ConvertSizeToDIP(const Window* window,
- const gfx::Size& size_in_pixel);
-AURA_EXPORT gfx::Rect ConvertRectToDIP(const Window* window,
- const gfx::Rect& rect_in_pixel);
-AURA_EXPORT gfx::Point ConvertPointToPixel(const Window* window,
- const gfx::Point& point_in_dip);
-AURA_EXPORT gfx::Size ConvertSizeToPixel(const Window* window,
- const gfx::Size& size_in_dip);
-AURA_EXPORT gfx::Rect ConvertRectToPixel(const Window* window,
- const gfx::Rect& rect_in_dip);
-
-} // namespace aura
-
-#endif // UI_AURA_DIP_UTIL_H_
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/dip_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698