Address cpplint issue "public: should be indented +1 space inside class NotificationPresenterWin7 [whitespace/indent] [3]"
This commit is contained in:
parent
9d75e9f54c
commit
161b4e752b
4 changed files with 14 additions and 14 deletions
|
@ -9,7 +9,7 @@ class Win32Notification;
|
||||||
class NotificationPresenterWin7 :
|
class NotificationPresenterWin7 :
|
||||||
public NotificationPresenter,
|
public NotificationPresenter,
|
||||||
public DesktopNotificationController {
|
public DesktopNotificationController {
|
||||||
public:
|
public:
|
||||||
NotificationPresenterWin7() = default;
|
NotificationPresenterWin7() = default;
|
||||||
|
|
||||||
Win32Notification* GetNotificationObjectByRef(
|
Win32Notification* GetNotificationObjectByRef(
|
||||||
|
@ -17,7 +17,7 @@ public:
|
||||||
|
|
||||||
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
|
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
|
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
|
||||||
|
|
||||||
brightray::Notification* CreateNotificationObject(
|
brightray::Notification* CreateNotificationObject(
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace brightray {
|
||||||
struct NotificationData;
|
struct NotificationData;
|
||||||
|
|
||||||
class DesktopNotificationController {
|
class DesktopNotificationController {
|
||||||
public:
|
public:
|
||||||
DesktopNotificationController(unsigned maximumToasts = 3);
|
DesktopNotificationController(unsigned maximumToasts = 3);
|
||||||
~DesktopNotificationController();
|
~DesktopNotificationController();
|
||||||
|
|
||||||
|
@ -20,18 +20,18 @@ public:
|
||||||
void CloseNotification(Notification& notification);
|
void CloseNotification(Notification& notification);
|
||||||
|
|
||||||
// Event handlers -- override to receive the events
|
// Event handlers -- override to receive the events
|
||||||
private:
|
private:
|
||||||
virtual void OnNotificationClosed(Notification& notification) {}
|
virtual void OnNotificationClosed(Notification& notification) {}
|
||||||
virtual void OnNotificationClicked(Notification& notification) {}
|
virtual void OnNotificationClicked(Notification& notification) {}
|
||||||
virtual void OnNotificationDismissed(Notification& notification) {}
|
virtual void OnNotificationDismissed(Notification& notification) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static HINSTANCE RegisterWndClasses();
|
static HINSTANCE RegisterWndClasses();
|
||||||
void StartAnimation();
|
void StartAnimation();
|
||||||
HFONT GetCaptionFont();
|
HFONT GetCaptionFont();
|
||||||
HFONT GetBodyFont();
|
HFONT GetBodyFont();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum TimerID {
|
enum TimerID {
|
||||||
TimerID_Animate = 1
|
TimerID_Animate = 1
|
||||||
};
|
};
|
||||||
|
@ -76,7 +76,7 @@ private:
|
||||||
HWND GetToast(const NotificationData* data) const;
|
HWND GetToast(const NotificationData* data) const;
|
||||||
void DestroyToast(ToastInstance& inst);
|
void DestroyToast(ToastInstance& inst);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr const TCHAR class_name_[] =
|
static constexpr const TCHAR class_name_[] =
|
||||||
TEXT("DesktopNotificationController");
|
TEXT("DesktopNotificationController");
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
class DesktopNotificationController::Notification {
|
class DesktopNotificationController::Notification {
|
||||||
public:
|
public:
|
||||||
Notification() = default;
|
Notification() = default;
|
||||||
Notification(const std::shared_ptr<NotificationData>& data);
|
Notification(const std::shared_ptr<NotificationData>& data);
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ public:
|
||||||
void Close();
|
void Close();
|
||||||
void Set(std::wstring caption, std::wstring bodyText, HBITMAP image);
|
void Set(std::wstring caption, std::wstring bodyText, HBITMAP image);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<NotificationData> data_;
|
std::shared_ptr<NotificationData> data_;
|
||||||
|
|
||||||
friend class DesktopNotificationController;
|
friend class DesktopNotificationController;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
namespace brightray {
|
namespace brightray {
|
||||||
|
|
||||||
class DesktopNotificationController::Toast {
|
class DesktopNotificationController::Toast {
|
||||||
public:
|
public:
|
||||||
static void Register(HINSTANCE hInstance);
|
static void Register(HINSTANCE hInstance);
|
||||||
static HWND Create(HINSTANCE hInstance,
|
static HWND Create(HINSTANCE hInstance,
|
||||||
std::shared_ptr<NotificationData>& data);
|
std::shared_ptr<NotificationData>& data);
|
||||||
|
@ -40,7 +40,7 @@ public:
|
||||||
return is_highlighted_;
|
return is_highlighted_;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum TimerID {
|
enum TimerID {
|
||||||
TimerID_AutoDismiss = 1
|
TimerID_AutoDismiss = 1
|
||||||
};
|
};
|
||||||
|
@ -67,7 +67,7 @@ private:
|
||||||
float AnimateEaseOut();
|
float AnimateEaseOut();
|
||||||
float AnimateStackCollapse();
|
float AnimateStackCollapse();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr const TCHAR class_name_[] =
|
static constexpr const TCHAR class_name_[] =
|
||||||
TEXT("DesktopNotificationToast");
|
TEXT("DesktopNotificationToast");
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
namespace brightray {
|
namespace brightray {
|
||||||
|
|
||||||
class Win32Notification : public brightray::Notification {
|
class Win32Notification : public brightray::Notification {
|
||||||
public:
|
public:
|
||||||
Win32Notification(NotificationDelegate* delegate,
|
Win32Notification(NotificationDelegate* delegate,
|
||||||
NotificationPresenterWin7* presenter) :
|
NotificationPresenterWin7* presenter) :
|
||||||
Notification(delegate, presenter) {
|
Notification(delegate, presenter) {
|
||||||
|
@ -23,7 +23,7 @@ public:
|
||||||
return tag_;
|
return tag_;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
|
||||||
DesktopNotificationController::Notification notification_ref_;
|
DesktopNotificationController::Notification notification_ref_;
|
||||||
std::string tag_;
|
std::string tag_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue