1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/status_icons/status_tray.h"
13 class StatusTrayWin
: public StatusTray
{
18 // Exposed for testing.
19 LRESULT CALLBACK
WndProc(HWND hwnd
,
25 // Overriden from StatusTray:
26 virtual StatusIcon
* CreatePlatformStatusIcon(
28 const gfx::ImageSkia
& image
,
29 const string16
& tool_tip
) OVERRIDE
;
32 // Static callback invoked when a message comes in to our messaging window.
33 static LRESULT CALLBACK
WndProcStatic(HWND hwnd
,
40 // The unique icon ID we will assign to the next icon.
43 // The window class of |window_|.
46 // The handle of the module that contains the window procedure of |window_|.
49 // The window used for processing events.
52 // The message ID of the "TaskbarCreated" message, sent to us when we need to
53 // reset our status icons.
54 UINT taskbar_created_message_
;
56 DISALLOW_COPY_AND_ASSIGN(StatusTrayWin
);
59 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_