OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |