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

Unified Diff: ash/wm/tablet_power_state_delegate_chromeos.h

Issue 2474913004: Tablet-like power button behavior on Convertible/Tablet ChromeOS devices (Closed)
Patch Set: Created 4 years, 1 month 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/wm/tablet_power_state_delegate_chromeos.h
diff --git a/ash/wm/tablet_power_state_delegate_chromeos.h b/ash/wm/tablet_power_state_delegate_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b89842748182d3ab62042544cd9338b198c5a6e
--- /dev/null
+++ b/ash/wm/tablet_power_state_delegate_chromeos.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_WM_TABLET_POWER_STATE_DELEGATE_CHROMEOS_H_
+#define ASH_WM_TABLET_POWER_STATE_DELEGATE_CHROMEOS_H_
+
+#include "ash/ash_export.h"
+#include "ash/wm/power_button_controller.h"
+#include "base/macros.h"
+
+namespace ash {
+
+class ASH_EXPORT TabletPowerStateDelegateChromeos
+ : public TabletPowerStateDelegate {
+ public:
+ TabletPowerStateDelegateChromeos();
+ ~TabletPowerStateDelegateChromeos() override;
+
+ // TabletPowerStateDelegate:
+ void SetBacklightsForcedOff(bool forced_off) override;
+ void GetBacklightsForcedOff(
+ const base::Callback<void(bool)>& callback) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TabletPowerStateDelegateChromeos);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_TABLET_POWER_STATE_DELEGATE_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698