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() {
|
void Shortcut::Unregister() {
|
||||||
GlobalShortcutListener::GetInstance()->UnregisterAccelerator(accelerator_, this);
|
GlobalShortcutListener::GetInstance()->UnregisterAccelerator(
|
||||||
|
accelerator_, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Shortcut::IsRegistered() {
|
bool Shortcut::IsRegistered() {
|
||||||
return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered(accelerator_);
|
return GlobalShortcutListener::GetInstance()->IsAcceleratorRegistered(
|
||||||
|
accelerator_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
|
@ -42,8 +42,8 @@ class Shortcut : public mate::EventEmitter,
|
||||||
return accelerator_;
|
return accelerator_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnActive() ;
|
void OnActive();
|
||||||
void OnFailed(const std::string& error_msg) ;
|
void OnFailed(const std::string& error_msg);
|
||||||
|
|
||||||
// GlobalShortcutListener::Observer implementation.
|
// GlobalShortcutListener::Observer implementation.
|
||||||
virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE;
|
virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue