diff options
-rw-r--r-- | build/common.gypi | 29 | ||||
-rw-r--r-- | chrome/browser/chromeos/notifications/notification_panel.cc | 2 | ||||
-rw-r--r-- | views/widget/widget.cc | 2 |
3 files changed, 5 insertions, 28 deletions
diff --git a/build/common.gypi b/build/common.gypi index 4c9487b..3a26189 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -24,13 +24,6 @@ # Whether we are using Views Toolkit 'toolkit_views%': 0, - # Whether the Views toolkit can use its Pure form when available - # or if it must only use GTK (the default at the moment). - # This is an intermediate step until all of Views is 'Pure', - # at which point we plan to remove those switches. - # This turns on the USE_ONLY_PURE_VIEWS macro. - 'use_only_pure_views%': 0, - # Disable touch support by default. 'touchui%': 0, @@ -45,7 +38,6 @@ }, # Copy conditionally-set variables out one scope. 'chromeos%': '<(chromeos)', - 'use_only_pure_views%': '<(use_only_pure_views)', 'touchui%': '<(touchui)', 'views_compositor%': '<(views_compositor)', 'use_aura%': '<(use_aura)', @@ -68,19 +60,12 @@ # Set default value of toolkit_views on for Windows, Chrome OS, # Touch and PureView. - ['OS=="win" or chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', { + ['OS=="win" or chromeos==1 or touchui==1 or use_aura==1', { 'toolkit_views%': 1, }, { 'toolkit_views%': 0, }], - # Views are always Pure in Touch and Aura case. - ['touchui==1 or use_aura==1', { - 'use_only_pure_views%': 1, - }, { - 'use_only_pure_views%': 0, - }], - # Use virtual keyboard by default in TouchUI builds. ['touchui==1', { 'use_virtual_keyboard%': 1, @@ -102,7 +87,6 @@ 'use_virtual_keyboard%': '<(use_virtual_keyboard)', 'host_arch%': '<(host_arch)', 'toolkit_views%': '<(toolkit_views)', - 'use_only_pure_views%': '<(use_only_pure_views)', 'views_compositor%': '<(views_compositor)', 'use_webkit_compositor%': '<(use_webkit_compositor)', 'use_aura%': '<(use_aura)', @@ -321,7 +305,7 @@ }], # Enable file manager extension on Chrome OS, Touch, PureView, Aura. - ['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', { + ['chromeos==1 or touchui==1 or use_aura==1', { 'file_manager_extension%': 1, }, { 'file_manager_extension%': 0, @@ -333,7 +317,7 @@ }], # Enable WebUI TaskManager always on Chrome OS, Touch or PureView. - ['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', { + ['chromeos==1 or touchui==1 or use_aura==1', { 'webui_task_manager%': 1, }], @@ -359,7 +343,6 @@ 'host_arch%': '<(host_arch)', 'library%': 'static_library', 'toolkit_views%': '<(toolkit_views)', - 'use_only_pure_views%': '<(use_only_pure_views)', 'views_compositor%': '<(views_compositor)', 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 'use_webkit_compositor%': '<(use_webkit_compositor)', @@ -819,9 +802,6 @@ ['toolkit_views==1', { 'grit_defines': ['-D', 'toolkit_views'], }], - ['use_only_pure_views==1', { - 'grit_defines': ['-D', 'use_only_pure_views'], - }], ['use_aura==1', { 'grit_defines': ['-D', 'use_aura'], }], @@ -975,9 +955,6 @@ ['toolkit_views==1', { 'defines': ['TOOLKIT_VIEWS=1'], }], - ['use_only_pure_views==1', { - 'defines': ['USE_ONLY_PURE_VIEWS=1'], - }], ['views_compositor==1', { 'defines': ['VIEWS_COMPOSITOR=1'], }], diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc index 4a96104..2b6b62f 100644 --- a/chrome/browser/chromeos/notifications/notification_panel.cc +++ b/chrome/browser/chromeos/notifications/notification_panel.cc @@ -459,7 +459,7 @@ void NotificationPanel::Show() { panel_widget_->SetContentsView(scroll_view_.get()); -#if defined(USE_ONLY_PURE_VIEWS) +#if defined(USE_AURA) || defined(TOUCH_UI) native->AttachToView(balloon_container_.get()); #else // Add the view port after scroll_view is attached to the panel widget. diff --git a/views/widget/widget.cc b/views/widget/widget.cc index 6e4c096..73b8b0e 100644 --- a/views/widget/widget.cc +++ b/views/widget/widget.cc @@ -224,7 +224,7 @@ void Widget::SetPureViews(bool pure) { // static bool Widget::IsPureViews() { -#if defined(USE_ONLY_PURE_VIEWS) +#if defined(USE_AURA) || defined(TOUCH_UI) return true; #else return use_pure_views; |