| 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_ICON_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 UINT icon_id() const { return icon_id_; } | 44 UINT icon_id() const { return icon_id_; } |
| 45 HWND window() const { return window_; } | 45 HWND window() const { return window_; } |
| 46 UINT message_id() const { return message_id_; } | 46 UINT message_id() const { return message_id_; } |
| 47 | 47 |
| 48 // Overridden from StatusIcon: | 48 // Overridden from StatusIcon: |
| 49 void SetImage(const gfx::ImageSkia& image) override; | 49 void SetImage(const gfx::ImageSkia& image) override; |
| 50 void SetToolTip(const base::string16& tool_tip) override; | 50 void SetToolTip(const base::string16& tool_tip) override; |
| 51 void DisplayBalloon(const gfx::ImageSkia& icon, | 51 void DisplayBalloon(const gfx::ImageSkia& icon, |
| 52 const base::string16& title, | 52 const base::string16& title, |
| 53 const base::string16& contents) override; | 53 const base::string16& contents, |
| 54 const message_center::NotifierId& notifier_id) override; |
| 54 void ForceVisible() override; | 55 void ForceVisible() override; |
| 55 | 56 |
| 56 protected: | 57 protected: |
| 57 // Overridden from StatusIcon: | 58 // Overridden from StatusIcon: |
| 58 void UpdatePlatformContextMenu(StatusIconMenuModel* menu) override; | 59 void UpdatePlatformContextMenu(StatusIconMenuModel* menu) override; |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 void InitIconData(NOTIFYICONDATA* icon_data); | 62 void InitIconData(NOTIFYICONDATA* icon_data); |
| 62 | 63 |
| 63 // The tray that owns us. Weak. | 64 // The tray that owns us. Weak. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 81 // Not owned. | 82 // Not owned. |
| 82 ui::MenuModel* menu_model_; | 83 ui::MenuModel* menu_model_; |
| 83 | 84 |
| 84 // Context menu associated with this icon (if any). | 85 // Context menu associated with this icon (if any). |
| 85 scoped_ptr<views::MenuRunner> menu_runner_; | 86 scoped_ptr<views::MenuRunner> menu_runner_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); | 88 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
| OLD | NEW |