| Index: ash/system/chromeos/tray_display.cc
|
| diff --git a/ash/system/chromeos/tray_display.cc b/ash/system/chromeos/tray_display.cc
|
| index fc6facf9c2a1797cf1e509d102a9344970d44025..42ce64cc51d30d2925c08515886066624a5c237c 100644
|
| --- a/ash/system/chromeos/tray_display.cc
|
| +++ b/ash/system/chromeos/tray_display.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "ash/system/chromeos/tray_display.h"
|
|
|
| +#include <vector>
|
| +
|
| +#include "ash/content/display/screen_orientation_controller_chromeos.h"
|
| #include "ash/display/display_controller.h"
|
| #include "ash/display/display_manager.h"
|
| #include "ash/shell.h"
|
| @@ -14,7 +17,6 @@
|
| #include "ash/system/tray/system_tray_delegate.h"
|
| #include "ash/system/tray/tray_constants.h"
|
| #include "ash/system/tray/tray_notification_view.h"
|
| -#include "ash/wm/maximize_mode/maximize_mode_controller.h"
|
| #include "base/bind.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -169,8 +171,8 @@ class DisplayView : public ActionableView {
|
| const views::Label* label() const { return label_; }
|
|
|
| // Overridden from views::View.
|
| - virtual bool GetTooltipText(const gfx::Point& p,
|
| - base::string16* tooltip) const override {
|
| + bool GetTooltipText(const gfx::Point& p,
|
| + base::string16* tooltip) const override {
|
| base::string16 tray_message = GetTrayDisplayMessage(NULL);
|
| base::string16 display_message = GetAllDisplayInfo();
|
| if (tray_message.empty() && display_message.empty())
|
| @@ -269,12 +271,12 @@ class DisplayView : public ActionableView {
|
| }
|
|
|
| // Overridden from ActionableView.
|
| - virtual bool PerformAction(const ui::Event& event) override {
|
| + bool PerformAction(const ui::Event& event) override {
|
| OpenSettings();
|
| return true;
|
| }
|
|
|
| - virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) override {
|
| + void OnBoundsChanged(const gfx::Rect& previous_bounds) override {
|
| int label_max_width = bounds().width() - kTrayPopupPaddingHorizontal * 2 -
|
| kTrayPopupPaddingBetweenItems - image_->GetPreferredSize().width();
|
| label_->SizeToFit(label_max_width);
|
| @@ -380,8 +382,9 @@ void TrayDisplay::CreateOrUpdateNotification(
|
|
|
| // Don't display notifications for accelerometer triggered screen rotations.
|
| // See http://crbug.com/364949
|
| - if (Shell::GetInstance()->maximize_mode_controller()->
|
| - ignore_display_configuration_updates()) {
|
| + if (Shell::GetInstance()
|
| + ->screen_orientation_controller()
|
| + ->ignore_display_configuration_updates()) {
|
| return;
|
| }
|
|
|
|
|