Chromium Code Reviews| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 | 70 |
| 71 // Not owned. | 71 // Not owned. |
| 72 ui::MenuModel* menu_model_; | 72 ui::MenuModel* menu_model_; |
| 73 | 73 |
| 74 // Context menu associated with this icon (if any). | 74 // Context menu associated with this icon (if any). |
| 75 scoped_ptr<views::MenuRunner> menu_runner_; | 75 scoped_ptr<views::MenuRunner> menu_runner_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); | 77 DISALLOW_COPY_AND_ASSIGN(StatusIconWin); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // Implements status notifications using Windows 8 metro style notifications. | |
| 81 class StatusIconMetro : public StatusIcon { | |
| 82 public: | |
| 83 // Constructor which provides this icon's unique ID and messaging window. | |
| 84 explicit StatusIconMetro(UINT id); | |
| 85 virtual ~StatusIconMetro(); | |
| 86 | |
| 87 // Overridden from StatusIcon: | |
| 88 virtual void SetImage(const SkBitmap& image) OVERRIDE; | |
| 89 virtual void SetPressedImage(const SkBitmap& image) OVERRIDE; | |
| 90 virtual void SetToolTip(const string16& tool_tip) OVERRIDE; | |
| 91 virtual void DisplayBalloon(const SkBitmap& icon, | |
| 92 const string16& title, | |
| 93 const string16& contents) OVERRIDE; | |
| 94 private: | |
| 95 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE; | |
|
sky
2012/08/24 16:58:47
Why is this one private, but not the rest?
ananta
2012/08/24 18:03:41
Changed to protected to mimic the way it is declar
| |
| 96 | |
| 97 string16 tool_tip_; | |
| 98 UINT id_; | |
|
sky
2012/08/24 16:58:47
const
ananta
2012/08/24 18:03:41
Done.
| |
| 99 | |
| 100 DISALLOW_COPY_AND_ASSIGN(StatusIconMetro); | |
| 101 }; | |
| 102 | |
| 80 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ | 103 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_ICON_WIN_H_ |
| OLD | NEW |