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

Unified Diff: ash/autoclick/autoclick_controller.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ash/ash_touch_exploration_manager_chromeos_unittest.cc ('k') | ash/autoclick/autoclick_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/autoclick/autoclick_controller.cc
diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc
index 7ea855438de0e7a8d32423b2506212a830311f5e..b0f715d6805d4348437f396974b93b69c956a892 100644
--- a/ash/autoclick/autoclick_controller.cc
+++ b/ash/autoclick/autoclick_controller.cc
@@ -28,14 +28,10 @@ namespace {
const int kMovementThreshold = 20;
bool IsModifierKey(ui::KeyboardCode key_code) {
- return key_code == ui::VKEY_SHIFT ||
- key_code == ui::VKEY_LSHIFT ||
- key_code == ui::VKEY_CONTROL ||
- key_code == ui::VKEY_LCONTROL ||
- key_code == ui::VKEY_RCONTROL ||
- key_code == ui::VKEY_MENU ||
- key_code == ui::VKEY_LMENU ||
- key_code == ui::VKEY_RMENU;
+ return key_code == ui::VKEY_SHIFT || key_code == ui::VKEY_LSHIFT ||
+ key_code == ui::VKEY_CONTROL || key_code == ui::VKEY_LCONTROL ||
+ key_code == ui::VKEY_RCONTROL || key_code == ui::VKEY_MENU ||
+ key_code == ui::VKEY_LMENU || key_code == ui::VKEY_RMENU;
}
} // namespace
@@ -98,8 +94,7 @@ AutoclickControllerImpl::AutoclickControllerImpl()
InitClickTimer();
}
-AutoclickControllerImpl::~AutoclickControllerImpl() {
-}
+AutoclickControllerImpl::~AutoclickControllerImpl() {}
void AutoclickControllerImpl::SetDelegate(std::unique_ptr<Delegate> delegate) {
delegate_ = std::move(delegate);
@@ -216,8 +211,7 @@ void AutoclickControllerImpl::OnScrollEvent(ui::ScrollEvent* event) {
}
void AutoclickControllerImpl::DoAutoclick() {
- gfx::Point screen_location =
- aura::Env::GetInstance()->last_mouse_location();
+ gfx::Point screen_location = aura::Env::GetInstance()->last_mouse_location();
aura::Window* root_window =
WmWindowAura::GetAuraWindow(wm::GetRootWindowAt(screen_location));
DCHECK(root_window) << "Root window not found while attempting autoclick.";
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos_unittest.cc ('k') | ash/autoclick/autoclick_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698