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

Unified Diff: ash/system/audio/tray_audio.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ash/system/audio/tray_audio.h ('k') | ash/system/chromeos/audio/tray_audio_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/audio/tray_audio.cc
diff --git a/ash/system/audio/tray_audio.cc b/ash/system/audio/tray_audio.cc
index cfdfc0e94fbf63299a5d5357a94ff75459da365f..ec2fd9c73bc6e66656cbe87044beca9c073cbd97 100644
--- a/ash/system/audio/tray_audio.cc
+++ b/ash/system/audio/tray_audio.cc
@@ -27,8 +27,8 @@
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
+#include "ui/display/display.h"
#include "ui/gfx/canvas.h"
-#include "ui/gfx/display.h"
#include "ui/gfx/font_list.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia_operations.h"
@@ -48,11 +48,11 @@ TrayAudio::TrayAudio(SystemTray* system_tray,
volume_view_(NULL),
pop_up_volume_view_(false) {
Shell::GetInstance()->system_tray_notifier()->AddAudioObserver(this);
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
}
TrayAudio::~TrayAudio() {
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
Shell::GetInstance()->system_tray_notifier()->RemoveAudioObserver(this);
}
@@ -143,35 +143,35 @@ void TrayAudio::ChangeInternalSpeakerChannelMode() {
// Swap left/right channel only if it is in Yoga mode.
system::TrayAudioDelegate::AudioChannelMode channel_mode =
system::TrayAudioDelegate::NORMAL;
- if (gfx::Display::HasInternalDisplay()) {
+ if (display::Display::HasInternalDisplay()) {
const DisplayInfo& display_info =
Shell::GetInstance()->display_manager()->GetDisplayInfo(
- gfx::Display::InternalDisplayId());
- if (display_info.GetActiveRotation() == gfx::Display::ROTATE_180)
+ display::Display::InternalDisplayId());
+ if (display_info.GetActiveRotation() == display::Display::ROTATE_180)
channel_mode = system::TrayAudioDelegate::LEFT_RIGHT_SWAPPED;
}
audio_delegate_->SetInternalSpeakerChannelMode(channel_mode);
}
-void TrayAudio::OnDisplayAdded(const gfx::Display& new_display) {
+void TrayAudio::OnDisplayAdded(const display::Display& new_display) {
if (!new_display.IsInternal())
return;
ChangeInternalSpeakerChannelMode();
}
-void TrayAudio::OnDisplayRemoved(const gfx::Display& old_display) {
+void TrayAudio::OnDisplayRemoved(const display::Display& old_display) {
if (!old_display.IsInternal())
return;
ChangeInternalSpeakerChannelMode();
}
-void TrayAudio::OnDisplayMetricsChanged(const gfx::Display& display,
+void TrayAudio::OnDisplayMetricsChanged(const display::Display& display,
uint32_t changed_metrics) {
if (!display.IsInternal())
return;
- if (changed_metrics & gfx::DisplayObserver::DISPLAY_METRIC_ROTATION)
+ if (changed_metrics & display::DisplayObserver::DISPLAY_METRIC_ROTATION)
ChangeInternalSpeakerChannelMode();
}
« no previous file with comments | « ash/system/audio/tray_audio.h ('k') | ash/system/chromeos/audio/tray_audio_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698