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

Unified Diff: ui/base/native_theme/native_theme.h

Issue 10310136: ui: Move NativeTheme files into ui/base/native_theme/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win 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/DEPS ('k') | ui/base/native_theme/native_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/native_theme/native_theme.h
diff --git a/ui/gfx/native_theme.h b/ui/base/native_theme/native_theme.h
similarity index 95%
rename from ui/gfx/native_theme.h
rename to ui/base/native_theme/native_theme.h
index 2a83dbaeacdb1455db1e4b4be54c596decf0e646..b37b1e7cef895a0c82bafac931762966f8a30396 100644
--- a/ui/gfx/native_theme.h
+++ b/ui/base/native_theme/native_theme.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_GFX_NATIVE_THEME_H_
-#define UI_GFX_NATIVE_THEME_H_
+#ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
+#define UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
#pragma once
#include "third_party/skia/include/core/SkColor.h"
@@ -13,9 +13,11 @@
class SkCanvas;
namespace gfx {
-
class Rect;
class Size;
+}
+
+namespace ui {
// This class supports drawing UI controls (like buttons, text fields, lists,
// comboboxes, etc) that look like the native UI controls of the underlying
@@ -198,9 +200,9 @@ class UI_EXPORT NativeTheme {
};
// Return the size of the part.
- virtual Size GetPartSize(Part part,
- State state,
- const ExtraParams& extra) const = 0;
+ virtual gfx::Size GetPartSize(Part part,
+ State state,
+ const ExtraParams& extra) const = 0;
// Paint the part to the canvas.
virtual void Paint(SkCanvas* canvas,
@@ -266,6 +268,6 @@ class UI_EXPORT NativeTheme {
DISALLOW_COPY_AND_ASSIGN(NativeTheme);
};
-} // namespace gfx
+} // namespace ui
-#endif // UI_GFX_NATIVE_THEME_H_
+#endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
« no previous file with comments | « ui/DEPS ('k') | ui/base/native_theme/native_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698