clang-format chromium_src
This commit is contained in:
parent
c090dd2f81
commit
8cc81509d7
38 changed files with 202 additions and 231 deletions
|
@ -21,8 +21,9 @@ namespace extensions {
|
|||
// forwards its output to the base class for processing.
|
||||
//
|
||||
// This class does two things:
|
||||
// 1. Intercepts media/volume keys. Uses an event tap for intercepting media keys
|
||||
// (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp, VolumeDown, VolumeMute).
|
||||
// 1. Intercepts media/volume keys. Uses an event tap for intercepting media
|
||||
// keys (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp,
|
||||
// VolumeDown, VolumeMute).
|
||||
// 2. Binds keyboard shortcuts (hot keys). Carbon RegisterEventHotKey API for
|
||||
// binding to non-media key global hot keys (eg. Command-Shift-1).
|
||||
class GlobalShortcutListenerMac : public GlobalShortcutListener {
|
||||
|
@ -67,12 +68,15 @@ class GlobalShortcutListenerMac : public GlobalShortcutListener {
|
|||
bool IsAnyHotKeyRegistered();
|
||||
|
||||
// The callback for when an event tap happens.
|
||||
static CGEventRef EventTapCallback(
|
||||
CGEventTapProxy proxy, CGEventType type, CGEventRef event, void* refcon);
|
||||
static CGEventRef EventTapCallback(CGEventTapProxy proxy,
|
||||
CGEventType type,
|
||||
CGEventRef event,
|
||||
void* refcon);
|
||||
|
||||
// The callback for when a hot key event happens.
|
||||
static OSStatus HotKeyHandler(
|
||||
EventHandlerCallRef next_handler, EventRef event, void* user_data);
|
||||
static OSStatus HotKeyHandler(EventHandlerCallRef next_handler,
|
||||
EventRef event,
|
||||
void* user_data);
|
||||
|
||||
// Whether this object is listening for global shortcuts.
|
||||
bool is_listening_;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#ifndef CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
||||
#define CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <set>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue