Nits: Fix code style.

This commit is contained in:
Haojian Wu 2014-07-30 21:18:26 +08:00
parent 9342d59a7c
commit b2217474c1
2 changed files with 6 additions and 4 deletions

View file

@ -69,11 +69,13 @@ void Shortcut::Register() {
}
void Shortcut::Unregister() {
GlobalShortcutListener::GetInstance()->UnregisterAccelerator(accelerator_, this);
GlobalShortcutListener::GetInstance()->UnregisterAccelerator(
accelerator_, this);
}
bool Shortcut::IsRegistered() {
return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered(accelerator_);
return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered(
accelerator_);
}
// static

View file

@ -42,8 +42,8 @@ class Shortcut : public mate::EventEmitter,
return accelerator_;
}
void OnActive() ;
void OnFailed(const std::string& error_msg) ;
void OnActive();
void OnFailed(const std::string& error_msg);
// GlobalShortcutListener::Observer implementation.
virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE;