| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_STATE_CHANGER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_STATE_CHANGER_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_STATE_CHANGER_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_STATE_CHANGER_WIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 10 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 11 #include "base/win/iunknown_impl.h" | 12 #include "base/win/iunknown_impl.h" |
| 12 #include "base/win/scoped_comptr.h" | 13 #include "base/win/scoped_comptr.h" |
| 13 | 14 |
| 14 // The known values for NOTIFYITEM's dwPreference member. | 15 // The known values for NOTIFYITEM's dwPreference member. |
| 15 enum NOTIFYITEM_PREFERENCE { | 16 enum NOTIFYITEM_PREFERENCE { |
| 16 // In Windows UI: "Only show notifications." | 17 // In Windows UI: "Only show notifications." |
| 17 PREFERENCE_SHOW_WHEN_ACTIVE = 0, | 18 PREFERENCE_SHOW_WHEN_ACTIVE = 0, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // TrayNotify->RegisterCallback() | 125 // TrayNotify->RegisterCallback() |
| 125 // ... other COM stack frames .. | 126 // ... other COM stack frames .. |
| 126 // StatusTrayStateChangerWin->Notify(NOTIFYITEM); | 127 // StatusTrayStateChangerWin->Notify(NOTIFYITEM); |
| 127 // so we can't just return the notifyitem we're looking for. | 128 // so we can't just return the notifyitem we're looking for. |
| 128 scoped_ptr<NOTIFYITEM> notify_item_; | 129 scoped_ptr<NOTIFYITEM> notify_item_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(StatusTrayStateChangerWin); | 131 DISALLOW_COPY_AND_ASSIGN(StatusTrayStateChangerWin); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_STATE_CHANGER_WIN_H_ | 134 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_ICONS_STATUS_TRAY_STATE_CHANGER_WIN_H_ |
| OLD | NEW |