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

Unified Diff: ash/common/system/chromeos/power/power_status_view.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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
Index: ash/common/system/chromeos/power/power_status_view.h
diff --git a/ash/common/system/chromeos/power/power_status_view.h b/ash/common/system/chromeos/power/power_status_view.h
deleted file mode 100644
index 1cd5cee9ac3bdda601bdbc68555687badb33f699..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/power/power_status_view.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/system/chromeos/power/power_status.h"
-#include "base/macros.h"
-#include "base/strings/string16.h"
-#include "ui/views/view.h"
-
-namespace views {
-class ImageView;
-class Label;
-}
-
-namespace ash {
-
-class ASH_EXPORT PowerStatusView : public views::View,
- public PowerStatus::Observer {
- public:
- explicit PowerStatusView(bool default_view_right_align);
- ~PowerStatusView() override;
-
- // views::View:
- void Layout() override;
- void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
-
- // PowerStatus::Observer:
- void OnPowerStatusChanged() override;
-
- private:
- friend class PowerStatusViewTest;
-
- void LayoutView();
- void UpdateText();
-
- // views::View:
- void ChildPreferredSizeChanged(views::View* child) override;
-
- // Layout default view UI items on the right side of system tray pop up item
- // if true; otherwise, layout the UI items on the left side.
- bool default_view_right_align_;
-
- views::Label* percentage_label_;
- views::Label* separator_label_;
- views::Label* time_status_label_;
-
- // Battery status indicator icon. Unused in material design.
- views::ImageView* icon_;
-
- // Information about the image last used to update |icon_|. Cached to avoid
- // unnecessary updates (http://crbug.com/589348).
- PowerStatus::BatteryImageInfo previous_battery_image_info_;
-
- // Only used in material design.
- base::string16 accessible_name_;
-
- DISALLOW_COPY_AND_ASSIGN(PowerStatusView);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
« no previous file with comments | « ash/common/system/chromeos/power/power_status_unittest.cc ('k') | ash/common/system/chromeos/power/power_status_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698