Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/ui/views/status_icons/status_tray_win.h

Issue 8351004: Add an extra argument to the DisplayBalloon method to support custom notification icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing argument order as suggested. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/compiler_specific.h"
11 #include "chrome/browser/status_icons/status_tray.h" 12 #include "chrome/browser/status_icons/status_tray.h"
12 13
13 class StatusTrayWin : public StatusTray { 14 class StatusTrayWin : public StatusTray {
14 public: 15 public:
15 StatusTrayWin(); 16 StatusTrayWin();
16 ~StatusTrayWin(); 17 ~StatusTrayWin();
17 18
18 // Exposed for testing. 19 // Exposed for testing.
19 LRESULT CALLBACK WndProc(HWND hwnd, 20 LRESULT CALLBACK WndProc(HWND hwnd,
20 UINT message, 21 UINT message,
21 WPARAM wparam, 22 WPARAM wparam,
22 LPARAM lparam); 23 LPARAM lparam);
23 protected: 24 protected:
24 // Overriden from StatusTray: 25 // Overriden from StatusTray:
25 virtual StatusIcon* CreatePlatformStatusIcon(); 26 virtual StatusIcon* CreatePlatformStatusIcon() OVERRIDE;
26 27
27 private: 28 private:
28 // Static callback invoked when a message comes in to our messaging window. 29 // Static callback invoked when a message comes in to our messaging window.
29 static LRESULT CALLBACK WndProcStatic(HWND hwnd, 30 static LRESULT CALLBACK WndProcStatic(HWND hwnd,
30 UINT message, 31 UINT message,
31 WPARAM wparam, 32 WPARAM wparam,
32 LPARAM lparam); 33 LPARAM lparam);
33 34
34 // The unique icon ID we will assign to the next icon. 35 // The unique icon ID we will assign to the next icon.
35 UINT next_icon_id_; 36 UINT next_icon_id_;
36 37
37 // The window used for processing events. 38 // The window used for processing events.
38 HWND window_; 39 HWND window_;
39 40
40 // The message ID of the "TaskbarCreated" message, sent to us when we need to 41 // The message ID of the "TaskbarCreated" message, sent to us when we need to
41 // reset our status icons. 42 // reset our status icons.
42 UINT taskbar_created_message_; 43 UINT taskbar_created_message_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(StatusTrayWin); 45 DISALLOW_COPY_AND_ASSIGN(StatusTrayWin);
45 }; 46 };
46 47
47 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_ 48 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_
48 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698