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

Unified Diff: ash/common/wm/maximize_mode/maximize_mode_screenshot_observer.h

Issue 2190773002: Fix Volume slider is captured in screenshot done in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/wm/maximize_mode/maximize_mode_screenshot_observer.h
diff --git a/ash/common/wm/maximize_mode/maximize_mode_screenshot_observer.h b/ash/common/wm/maximize_mode/maximize_mode_screenshot_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..381e2cba47e77dd887e1fdfe70fe58656d78a5cc
--- /dev/null
+++ b/ash/common/wm/maximize_mode/maximize_mode_screenshot_observer.h
@@ -0,0 +1,28 @@
+// 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_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_SCREENSHOT_OBSERVER_H_
+#define ASH_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_SCREENSHOT_OBSERVER_H_
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+class ASH_EXPORT MaximizeModeScreenshotObserver {
+ public:
+ virtual ~MaximizeModeScreenshotObserver() {}
+
+ // Notifies when screenshot is going to be taken by volume-down modifier +
+ // power button accelerator combinations. It receives the volume value that
+ // wants to be restored.
+ virtual void OnWillTakeScreenshot(int volume_percent) = 0;
+
+ // Notifies when screenshot is done. The implementation should restore the
+ // output volume.
+ virtual void OnDidTakeScreenshot() = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_SCREENSHOT_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698