Address cpplint issue "public: should be indented +1 space inside class NotificationPresenterWin7 [whitespace/indent] [3]"

This commit is contained in:
Ales Pergl 2017-04-05 13:15:06 +02:00
parent 9d75e9f54c
commit 161b4e752b
4 changed files with 14 additions and 14 deletions

View file

@ -9,7 +9,7 @@ class Win32Notification;
class NotificationPresenterWin7 :
public NotificationPresenter,
public DesktopNotificationController {
public:
public:
NotificationPresenterWin7() = default;
Win32Notification* GetNotificationObjectByRef(
@ -17,7 +17,7 @@ public:
Win32Notification* GetNotificationObjectByTag(const std::string& tag);
private:
private:
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin7);
brightray::Notification* CreateNotificationObject(

View file

@ -10,7 +10,7 @@ namespace brightray {
struct NotificationData;
class DesktopNotificationController {
public:
public:
DesktopNotificationController(unsigned maximumToasts = 3);
~DesktopNotificationController();
@ -20,18 +20,18 @@ public:
void CloseNotification(Notification& notification);
// Event handlers -- override to receive the events
private:
private:
virtual void OnNotificationClosed(Notification& notification) {}
virtual void OnNotificationClicked(Notification& notification) {}
virtual void OnNotificationDismissed(Notification& notification) {}
private:
private:
static HINSTANCE RegisterWndClasses();
void StartAnimation();
HFONT GetCaptionFont();
HFONT GetBodyFont();
private:
private:
enum TimerID {
TimerID_Animate = 1
};
@ -76,7 +76,7 @@ private:
HWND GetToast(const NotificationData* data) const;
void DestroyToast(ToastInstance& inst);
private:
private:
static constexpr const TCHAR class_name_[] =
TEXT("DesktopNotificationController");
@ -88,7 +88,7 @@ private:
};
class DesktopNotificationController::Notification {
public:
public:
Notification() = default;
Notification(const std::shared_ptr<NotificationData>& data);
@ -97,7 +97,7 @@ public:
void Close();
void Set(std::wstring caption, std::wstring bodyText, HBITMAP image);
private:
private:
std::shared_ptr<NotificationData> data_;
friend class DesktopNotificationController;

View file

@ -4,7 +4,7 @@
namespace brightray {
class DesktopNotificationController::Toast {
public:
public:
static void Register(HINSTANCE hInstance);
static HWND Create(HINSTANCE hInstance,
std::shared_ptr<NotificationData>& data);
@ -40,7 +40,7 @@ public:
return is_highlighted_;
}
private:
private:
enum TimerID {
TimerID_AutoDismiss = 1
};
@ -67,7 +67,7 @@ private:
float AnimateEaseOut();
float AnimateStackCollapse();
private:
private:
static constexpr const TCHAR class_name_[] =
TEXT("DesktopNotificationToast");

View file

@ -5,7 +5,7 @@
namespace brightray {
class Win32Notification : public brightray::Notification {
public:
public:
Win32Notification(NotificationDelegate* delegate,
NotificationPresenterWin7* presenter) :
Notification(delegate, presenter) {
@ -23,7 +23,7 @@ public:
return tag_;
}
private:
private:
DISALLOW_COPY_AND_ASSIGN(Win32Notification);
DesktopNotificationController::Notification notification_ref_;
std::string tag_;