| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "ui/app_list/app_list_constants.h" | 9 #include "ui/app_list/app_list_constants.h" |
| 10 #include "ui/app_list/app_list_model.h" | 10 #include "ui/app_list/app_list_model.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const int kSpeechUIMargin = 12; | 51 const int kSpeechUIMargin = 12; |
| 52 | 52 |
| 53 // The vertical position for the appearing animation of the speech UI. | 53 // The vertical position for the appearing animation of the speech UI. |
| 54 const float kSpeechUIApearingPosition =12; | 54 const float kSpeechUIApearingPosition =12; |
| 55 | 55 |
| 56 // The distance between the arrow tip and edge of the anchor view. | 56 // The distance between the arrow tip and edge of the anchor view. |
| 57 const int kArrowOffset = 10; | 57 const int kArrowOffset = 10; |
| 58 | 58 |
| 59 #if defined(OS_LINUX) | 59 #if defined(OS_LINUX) |
| 60 // The WM_CLASS name for the app launcher window on Linux. | 60 // The WM_CLASS name for the app launcher window on Linux. |
| 61 const char* kAppListWMClass = "chrome_app_list"; | 61 #if defined(GOOGLE_CHROME_BUILD) |
| 62 const char kAppListWMClass[] = "chrome_app_list"; |
| 63 #else // CHROMIUM_BUILD |
| 64 const char kAppListWMClass[] = "chromium_app_list"; |
| 65 #endif |
| 62 #endif | 66 #endif |
| 63 | 67 |
| 64 // Determines whether the current environment supports shadows bubble borders. | 68 // Determines whether the current environment supports shadows bubble borders. |
| 65 bool SupportsShadow() { | 69 bool SupportsShadow() { |
| 66 #if defined(USE_AURA) && defined(OS_WIN) | 70 #if defined(USE_AURA) && defined(OS_WIN) |
| 67 // Shadows are not supported on Windows Aura without Aero Glass. | 71 // Shadows are not supported on Windows Aura without Aero Glass. |
| 68 if (!ui::win::IsAeroGlassEnabled() || | 72 if (!ui::win::IsAeroGlassEnabled() || |
| 69 CommandLine::ForCurrentProcess()->HasSwitch( | 73 CommandLine::ForCurrentProcess()->HasSwitch( |
| 70 switches::kDisableDwmComposition)) { | 74 switches::kDisableDwmComposition)) { |
| 71 return false; | 75 return false; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 #else | 467 #else |
| 464 speech_view_->SetVisible(recognizing); | 468 speech_view_->SetVisible(recognizing); |
| 465 app_list_main_view_->SetVisible(!recognizing); | 469 app_list_main_view_->SetVisible(!recognizing); |
| 466 #endif | 470 #endif |
| 467 | 471 |
| 468 // Needs to schedule paint of AppListView itself, to repaint the background. | 472 // Needs to schedule paint of AppListView itself, to repaint the background. |
| 469 SchedulePaint(); | 473 SchedulePaint(); |
| 470 } | 474 } |
| 471 | 475 |
| 472 } // namespace app_list | 476 } // namespace app_list |
| OLD | NEW |