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

Unified Diff: ui/views/controls/native/native_view_host_unittest.cc

Issue 191723003: Nukes USE_AURA ifdefs from views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 9 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
Index: ui/views/controls/native/native_view_host_unittest.cc
diff --git a/ui/views/controls/native/native_view_host_unittest.cc b/ui/views/controls/native/native_view_host_unittest.cc
index f30980bca8bad31eb9c4e2b9a46d89f7ae317892..247782437a5022d0d45cc68ee4277789ca2b69b1 100644
--- a/ui/views/controls/native/native_view_host_unittest.cc
+++ b/ui/views/controls/native/native_view_host_unittest.cc
@@ -4,19 +4,12 @@
#include "ui/views/controls/native/native_view_host.h"
-#if defined(OS_WIN) && !defined(USE_AURA)
-#include <windows.h>
-#endif
-
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/aura/window.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/widget/widget.h"
-#if defined(USE_AURA)
-#include "ui/aura/window.h"
-#endif
-
namespace views {
class NativeViewHostTest : public ViewsTestBase {
@@ -93,15 +86,9 @@ class NativeViewHierarchyChangedTestView : public View {
DISALLOW_COPY_AND_ASSIGN(NativeViewHierarchyChangedTestView);
};
-#if defined(USE_AURA)
aura::Window* GetNativeParent(aura::Window* window) {
return window->parent();
}
-#elif defined(OS_WIN)
-HWND GetNativeParent(HWND window) {
- return GetParent(window);
-}
-#endif
class ViewHierarchyChangedTestHost : public NativeViewHost {
public:

Powered by Google App Engine
This is Rietveld 408576698