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

Side by Side Diff: src/plugin/NotificationMessage.h

Issue 29333356: Noissue - Eliminate compile warnings in the plugin (Closed)
Patch Set: Created Jan. 11, 2016, 3:46 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/plugin/NotificationMessage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 10 matching lines...) Expand all
21 #include <string> 21 #include <string>
22 22
23 class NotificationMessage 23 class NotificationMessage
24 { 24 {
25 public: 25 public:
26 NotificationMessage(HWND parent = 0); 26 NotificationMessage(HWND parent = 0);
27 ~NotificationMessage(){}; 27 ~NotificationMessage(){};
28 bool Show(std::wstring message, std::wstring title, int icon); 28 bool Show(std::wstring message, std::wstring title, int icon);
29 void Hide(); 29 void Hide();
30 void Move(short x, short y); 30 void Move(short x, short y);
31 void MoveToCenter(const RECT& r)
32 {
33 Move(static_cast<short>((r.left + r.right) / 2), static_cast<short>((r.top + r.bottom) / 2));
34 }
31 bool SetTextAndIcon(std::wstring text, std::wstring title, int icon); 35 bool SetTextAndIcon(std::wstring text, std::wstring title, int icon);
32 void SetParent(HWND parent); 36 void SetParent(HWND parent);
33 bool IsVisible(); 37 bool IsVisible();
34 private: 38 private:
35 HWND parentWindow; 39 HWND parentWindow;
36 HWND toolTipWindow; 40 HWND toolTipWindow;
37 static bool commonControlsInitialized; 41 static bool commonControlsInitialized;
38 static void InitializeCommonControls(); 42 static void InitializeCommonControls();
39 }; 43 };
40 44
41 #endif 45 #endif
OLDNEW
« no previous file with comments | « no previous file | src/plugin/NotificationMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld