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 #include "chrome/browser/ui/views/status_icons/status_icon_win.h" | 5 #include "chrome/browser/ui/views/status_icons/status_icon_win.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" |
9 #include "chrome/browser/ui/views/status_icons/status_tray_win.h" | 9 #include "chrome/browser/ui/views/status_icons/status_tray_win.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 #include "ui/gfx/geometry/point.h" |
11 #include "ui/gfx/icon_util.h" | 12 #include "ui/gfx/icon_util.h" |
12 #include "ui/gfx/point.h" | |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/views/controls/menu/menu_runner.h" | 14 #include "ui/views/controls/menu/menu_runner.h" |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // StatusIconWin, public: | 17 // StatusIconWin, public: |
18 | 18 |
19 StatusIconWin::StatusIconWin(StatusTrayWin* tray, | 19 StatusIconWin::StatusIconWin(StatusTrayWin* tray, |
20 UINT id, | 20 UINT id, |
21 HWND window, | 21 HWND window, |
22 UINT message) | 22 UINT message) |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 memset(icon_data, 0, sizeof(NOTIFYICONDATA)); | 169 memset(icon_data, 0, sizeof(NOTIFYICONDATA)); |
170 icon_data->cbSize = sizeof(NOTIFYICONDATA); | 170 icon_data->cbSize = sizeof(NOTIFYICONDATA); |
171 } else { | 171 } else { |
172 memset(icon_data, 0, NOTIFYICONDATA_V3_SIZE); | 172 memset(icon_data, 0, NOTIFYICONDATA_V3_SIZE); |
173 icon_data->cbSize = NOTIFYICONDATA_V3_SIZE; | 173 icon_data->cbSize = NOTIFYICONDATA_V3_SIZE; |
174 } | 174 } |
175 | 175 |
176 icon_data->hWnd = window_; | 176 icon_data->hWnd = window_; |
177 icon_data->uID = icon_id_; | 177 icon_data->uID = icon_id_; |
178 } | 178 } |
OLD | NEW |