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

Unified Diff: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc

Issue 10389217: Aura: Desktop aura is now default on non-chromeos linux builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
index db807d58f6cea32da2fc24b322c61f20a383a243..e23cf5f3221ec40f02858cd75ef369d2553682d7 100644
--- a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
+++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
@@ -4,7 +4,6 @@
#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 "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
@@ -30,6 +29,10 @@
#include "ui/views/widget/widget.h"
#include "ui/views/window/non_client_view.h"
+#if defined(USE_ASH)
+#include "ash/wm/workspace/frame_maximize_button.h"
+#endif
+
namespace {
// The number of pixels to use as a hover zone at the top of the screen.
const int kTopMargin = 1;
@@ -51,7 +54,12 @@ class AppNonClientFrameViewAura::ControlView
explicit ControlView(AppNonClientFrameViewAura* owner) :
owner_(owner),
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(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
restore_button_->SetAccessibleName(
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698