OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // Exposed for testing. | 35 // Exposed for testing. |
36 LRESULT CALLBACK | 36 LRESULT CALLBACK |
37 WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); | 37 WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
38 | 38 |
39 protected: | 39 protected: |
40 // Overriden from StatusTray: | 40 // Overriden from StatusTray: |
41 virtual StatusIcon* CreatePlatformStatusIcon(StatusIconType type, | 41 virtual StatusIcon* CreatePlatformStatusIcon(StatusIconType type, |
42 const gfx::ImageSkia& image, | 42 const gfx::ImageSkia& image, |
43 const base::string16& tool_tip) | 43 const base::string16& tool_tip) |
44 OVERRIDE; | 44 override; |
45 | 45 |
46 private: | 46 private: |
47 FRIEND_TEST_ALL_PREFIXES(StatusTrayWinTest, EnsureVisibleTest); | 47 FRIEND_TEST_ALL_PREFIXES(StatusTrayWinTest, EnsureVisibleTest); |
48 | 48 |
49 // Static callback invoked when a message comes in to our messaging window. | 49 // Static callback invoked when a message comes in to our messaging window. |
50 static LRESULT CALLBACK | 50 static LRESULT CALLBACK |
51 WndProcStatic(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); | 51 WndProcStatic(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
52 | 52 |
53 UINT NextIconId(); | 53 UINT NextIconId(); |
54 | 54 |
(...skipping 18 matching lines...) Expand all Loading... |
73 | 73 |
74 // Manages changes performed on a background thread to manipulate visibility | 74 // Manages changes performed on a background thread to manipulate visibility |
75 // of notification icons. | 75 // of notification icons. |
76 scoped_ptr<StatusTrayStateChangerProxy> state_changer_proxy_; | 76 scoped_ptr<StatusTrayStateChangerProxy> state_changer_proxy_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(StatusTrayWin); | 78 DISALLOW_COPY_AND_ASSIGN(StatusTrayWin); |
79 }; | 79 }; |
80 | 80 |
81 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_ | 81 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_WIN_H_ |
82 | 82 |
OLD | NEW |