Nits: Fix code style.
This commit is contained in:
parent
9342d59a7c
commit
b2217474c1
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue