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

Unified Diff: ash/accelerators/accelerator_controller.h

Issue 2131733002: mash: Migrate [Keyboard]Brightness code to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.h
diff --git a/ash/accelerators/accelerator_controller.h b/ash/accelerators/accelerator_controller.h
index 2ed610d18b8e0a4d4ce0eb419ac841e6b3e683e4..d6cd74f76b11653ddbeb9d229994da16fb5b6533 100644
--- a/ash/accelerators/accelerator_controller.h
+++ b/ash/accelerators/accelerator_controller.h
@@ -27,10 +27,8 @@ class AcceleratorManager;
namespace ash {
struct AcceleratorData;
-class BrightnessControlDelegate;
class ExitWarningHandler;
class ImeControlDelegate;
-class KeyboardBrightnessControlDelegate;
class ScreenshotDelegate;
class VolumeControlDelegate;
@@ -101,15 +99,10 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
// Returns the restriction for the current context.
AcceleratorProcessingRestriction GetCurrentAcceleratorRestriction();
- void SetBrightnessControlDelegate(
- std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate);
void SetImeControlDelegate(
std::unique_ptr<ImeControlDelegate> ime_control_delegate);
void SetScreenshotDelegate(
std::unique_ptr<ScreenshotDelegate> screenshot_delegate);
- BrightnessControlDelegate* brightness_control_delegate() const {
- return brightness_control_delegate_.get();
- }
ScreenshotDelegate* screenshot_delegate() {
return screenshot_delegate_.get();
}
@@ -166,21 +159,12 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
AcceleratorProcessingRestriction GetAcceleratorProcessingRestriction(
int action);
- void SetKeyboardBrightnessControlDelegate(
- std::unique_ptr<KeyboardBrightnessControlDelegate>
- keyboard_brightness_control_delegate);
-
std::unique_ptr<ui::AcceleratorManager> accelerator_manager_;
// A tracker for the current and previous accelerators.
std::unique_ptr<ui::AcceleratorHistory> accelerator_history_;
- // TODO(derat): BrightnessControlDelegate is also used by the system tray;
- // move it outside of this class.
- std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_;
std::unique_ptr<ImeControlDelegate> ime_control_delegate_;
- std::unique_ptr<KeyboardBrightnessControlDelegate>
- keyboard_brightness_control_delegate_;
std::unique_ptr<ScreenshotDelegate> screenshot_delegate_;
// Handles the exit accelerator which requires a double press to exit and
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698