Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/NotificationMessage.h

Issue 11557015: Tooltip notification. Check for update fixes. (Closed)
Patch Set: Addressing comments Created Sept. 16, 2013, 1:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/NotificationMessage.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/plugin/NotificationMessage.h
@@ -0,0 +1,25 @@
+#ifndef NOTIFICATION_MESSAGE_H
+#define NOTIFICATION_MESSAGE_H
+
+#include <string>
+
+class NotificationMessage
+{
+public:
+ NotificationMessage();
+ NotificationMessage(HWND parent);
+ ~NotificationMessage(){};
+ bool Show(std::wstring message, std::wstring title, int icon);
+ bool Hide();
+ void Move(short x, short y);
+ bool SetTextAndIcon(std::wstring text, std::wstring title, int icon);
+ void SetParent(HWND parent);
+ bool IsVisible();
+private:
+ HWND parentWindow;
+ HWND toolTipWindow;
+ static bool commonControlsInitialized;
+ static void CommonControlsInitialize();
Wladimir Palant 2013/09/19 08:59:16 Nit: given that method names should be actions, In
+};
+
+#endif

Powered by Google App Engine
This is Rietveld