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

Unified Diff: ui/views/widget/widget.cc

Issue 10084020: Removing defunct code around PureViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge tests. Created 8 years, 8 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/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 527110cdde5dc92590911191e8e613fae0581b19..bc0c75a2c0104de1cecf65e0c1c2ab405ae3d4d6 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -30,13 +30,6 @@
#include "ui/views/controls/menu/menu_controller.h"
#endif
-namespace {
-
-// Set to true if a pure Views implementation is preferred
-bool use_pure_views = false;
-
-} // namespace
-
namespace views {
// This class is used to keep track of the event a Widget is processing, and
@@ -229,20 +222,6 @@ Widget* Widget::CreateWindowWithParentAndBounds(WidgetDelegate* delegate,
}
// static
-void Widget::SetPureViews(bool pure) {
- use_pure_views = pure;
-}
-
-// static
-bool Widget::IsPureViews() {
-#if defined(USE_AURA)
- return true;
-#else
- return use_pure_views;
-#endif
-}
-
-// static
Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) {
internal::NativeWidgetPrivate* native_widget =
internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view);
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698