Commit 24f9d02c authored by erg@chromium.org's avatar erg@chromium.org

Aura: Desktop aura is now default on non-chromeos linux builds.

BUG=125106
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10389217

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137982 0039d316-1c4b-4281-b951-d872f2087c98
parent 571b35e8
...@@ -550,7 +550,6 @@ ...@@ -550,7 +550,6 @@
'../chrome/chrome.gyp:chrome', '../chrome/chrome.gyp:chrome',
'../chrome/chrome.gyp:interactive_ui_tests', '../chrome/chrome.gyp:interactive_ui_tests',
'../chrome/chrome.gyp:unit_tests', '../chrome/chrome.gyp:unit_tests',
'../remoting/remoting.gyp:remoting_unittests',
'../ui/aura/aura.gyp:*', '../ui/aura/aura.gyp:*',
'../ui/compositor/compositor.gyp:*', '../ui/compositor/compositor.gyp:*',
'../ui/ui.gyp:gfx_unittests', '../ui/ui.gyp:gfx_unittests',
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
# imply using ash. This rule should be removed for the future when # imply using ash. This rule should be removed for the future when
# both Linux and Windows are using the aura windows without the ash # both Linux and Windows are using the aura windows without the ash
# interface. # interface.
['use_aura==1 and ((OS=="linux" and chromeos==0) or OS=="win")', { ['use_aura==1 and OS=="win"', {
'use_ash%': 1, 'use_ash%': 1,
}], }],
['use_ash==1', { ['use_ash==1', {
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h" #include "chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h"
#include "ash/wm/workspace/frame_maximize_button.h"
#include "base/debug/stack_trace.h" #include "base/debug/stack_trace.h"
#include "chrome/browser/ui/views/frame/browser_frame.h" #include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_view.h" #include "chrome/browser/ui/views/frame/browser_view.h"
...@@ -30,6 +29,10 @@ ...@@ -30,6 +29,10 @@
#include "ui/views/widget/widget.h" #include "ui/views/widget/widget.h"
#include "ui/views/window/non_client_view.h" #include "ui/views/window/non_client_view.h"
#if defined(USE_ASH)
#include "ash/wm/workspace/frame_maximize_button.h"
#endif
namespace { namespace {
// The number of pixels to use as a hover zone at the top of the screen. // The number of pixels to use as a hover zone at the top of the screen.
const int kTopMargin = 1; const int kTopMargin = 1;
...@@ -51,7 +54,12 @@ class AppNonClientFrameViewAura::ControlView ...@@ -51,7 +54,12 @@ class AppNonClientFrameViewAura::ControlView
explicit ControlView(AppNonClientFrameViewAura* owner) : explicit ControlView(AppNonClientFrameViewAura* owner) :
owner_(owner), owner_(owner),
close_button_(new views::ImageButton(this)), close_button_(new views::ImageButton(this)),
restore_button_(new ash::FrameMaximizeButton(this, owner_)) { #if defined(USE_ASH)
restore_button_(new ash::FrameMaximizeButton(this, owner_))
#else
restore_button_(new views::ImageButton(this))
#endif
{
close_button_->SetAccessibleName( close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE)); l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
restore_button_->SetAccessibleName( restore_button_->SetAccessibleName(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment