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

Side by Side Diff: ui/app_list/views/app_list_view.cc

Issue 292443002: linux_aura: Compile ash into chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Rebase to ToT Created 6 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 unified diff | Download patch
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/app_list/views/app_list_view.h" 5 #include "ui/app_list/views/app_list_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Determines whether the current environment supports shadows bubble borders. 65 // Determines whether the current environment supports shadows bubble borders.
66 bool SupportsShadow() { 66 bool SupportsShadow() {
67 #if defined(OS_WIN) 67 #if defined(OS_WIN)
68 // Shadows are not supported on Windows without Aero Glass. 68 // Shadows are not supported on Windows without Aero Glass.
69 if (!ui::win::IsAeroGlassEnabled() || 69 if (!ui::win::IsAeroGlassEnabled() ||
70 CommandLine::ForCurrentProcess()->HasSwitch( 70 CommandLine::ForCurrentProcess()->HasSwitch(
71 switches::kDisableDwmComposition)) { 71 switches::kDisableDwmComposition)) {
72 return false; 72 return false;
73 } 73 }
74 #elif defined(OS_LINUX) && !defined(USE_ASH) 74 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
75 // Shadows are not supported on (non-ChromeOS) Linux. 75 // Shadows are not supported on (non-ChromeOS) Linux.
76 return false; 76 return false;
77 #endif 77 #endif
78 return true; 78 return true;
79 } 79 }
80 80
81 } // namespace 81 } // namespace
82 82
83 // An animation observer to hide the view at the end of the animation. 83 // An animation observer to hide the view at the end of the animation.
84 class HideViewAnimationObserver : public ui::ImplicitAnimationObserver { 84 class HideViewAnimationObserver : public ui::ImplicitAnimationObserver {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 #else 511 #else
512 speech_view_->SetVisible(recognizing); 512 speech_view_->SetVisible(recognizing);
513 app_list_main_view_->SetVisible(!recognizing); 513 app_list_main_view_->SetVisible(!recognizing);
514 514
515 // Needs to schedule paint of AppListView itself, to repaint the background. 515 // Needs to schedule paint of AppListView itself, to repaint the background.
516 GetBubbleFrameView()->SchedulePaint(); 516 GetBubbleFrameView()->SchedulePaint();
517 #endif 517 #endif
518 } 518 }
519 519
520 } // namespace app_list 520 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698