Commit 5a622685 authored by tfarina@chromium.org's avatar tfarina@chromium.org

ash: Small fixes for ash_unittests when building in aura.

Two function were hidden under chromeos ifdef, since they are called only on
ChromeOS and one constant were also hidden under chromeos ifdef for the
same reason.

BUG=None
TEST=./build/gyp_chromium -Duse_aura, ninja -C out/Debug ash_unittests
R=jamescook@chromium.org

Review URL: https://codereview.chromium.org/222963003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261476 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c4d189e
...@@ -382,11 +382,13 @@ bool HandleScaleUI(bool up) { ...@@ -382,11 +382,13 @@ bool HandleScaleUI(bool up) {
return true; return true;
} }
#if defined(OS_CHROMEOS)
bool HandleSwapPrimaryDisplay() { bool HandleSwapPrimaryDisplay() {
base::RecordAction(UserMetricsAction("Accel_Swap_Primary_Display")); base::RecordAction(UserMetricsAction("Accel_Swap_Primary_Display"));
Shell::GetInstance()->display_controller()->SwapPrimaryDisplay(); Shell::GetInstance()->display_controller()->SwapPrimaryDisplay();
return true; return true;
} }
#endif
bool HandleShowKeyboardOverlay() { bool HandleShowKeyboardOverlay() {
base::RecordAction(UserMetricsAction("Accel_Show_Keyboard_Overlay")); base::RecordAction(UserMetricsAction("Accel_Show_Keyboard_Overlay"));
...@@ -426,6 +428,7 @@ bool HandleShowTaskManager() { ...@@ -426,6 +428,7 @@ bool HandleShowTaskManager() {
return true; return true;
} }
#if defined(OS_CHROMEOS)
void HandleSilenceSpokenFeedback() { void HandleSilenceSpokenFeedback() {
base::RecordAction(UserMetricsAction("Accel_Silence_Spoken_Feedback")); base::RecordAction(UserMetricsAction("Accel_Silence_Spoken_Feedback"));
...@@ -435,6 +438,7 @@ void HandleSilenceSpokenFeedback() { ...@@ -435,6 +438,7 @@ void HandleSilenceSpokenFeedback() {
return; return;
delegate->SilenceSpokenFeedback(); delegate->SilenceSpokenFeedback();
} }
#endif
bool HandleSwitchIme(ImeControlDelegate* ime_control_delegate, bool HandleSwitchIme(ImeControlDelegate* ime_control_delegate,
const ui::Accelerator& accelerator) { const ui::Accelerator& accelerator) {
......
...@@ -36,7 +36,9 @@ namespace ash { ...@@ -36,7 +36,9 @@ namespace ash {
namespace { namespace {
#if defined(OS_CHROMEOS)
const int kMaxShutdownSoundDurationMs = 1500; const int kMaxShutdownSoundDurationMs = 1500;
#endif
aura::Window* GetBackground() { aura::Window* GetBackground() {
aura::Window* root_window = Shell::GetPrimaryRootWindow(); aura::Window* root_window = Shell::GetPrimaryRootWindow();
......
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