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

Unified Diff: ash/system/chromeos/power/tablet_power_button_controller.cc

Issue 2621373003: cleanup: Remove stylus check within OnMouseEvent for TabletPowerButtonController (Closed)
Patch Set: Created 3 years, 11 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/system/chromeos/power/tablet_power_button_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tablet_power_button_controller.cc
diff --git a/ash/system/chromeos/power/tablet_power_button_controller.cc b/ash/system/chromeos/power/tablet_power_button_controller.cc
index d8b3fc6f54204c082c8fd1ce0bfc718cc44c84ec..f34dc3ee71973f99955d421e89d595d1b59b9850 100644
--- a/ash/system/chromeos/power/tablet_power_button_controller.cc
+++ b/ash/system/chromeos/power/tablet_power_button_controller.cc
@@ -164,12 +164,8 @@ void TabletPowerButtonController::OnKeyEvent(ui::KeyEvent* event) {
}
void TabletPowerButtonController::OnMouseEvent(ui::MouseEvent* event) {
- ui::EventPointerType pointer_type = event->pointer_details().pointer_type;
-
- if (pointer_type != ui::EventPointerType::POINTER_TYPE_MOUSE ||
- (event->flags() & ui::EF_IS_SYNTHESIZED)) {
+ if (event->flags() & ui::EF_IS_SYNTHESIZED)
return;
- }
if (!IsTabletModeActive() && backlights_forced_off_)
SetDisplayForcedOff(false);
« no previous file with comments | « no previous file | ash/system/chromeos/power/tablet_power_button_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698