mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Nits: Fix code style.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user