Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/media/media_stream_capture_indicator.h

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
9 #include <vector> 10 #include <vector>
10 #include <string>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/public/common/media_stream_request.h" 13 #include "content/public/common/media_stream_request.h"
14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/base/models/simple_menu_model.h" 14 #include "ui/base/models/simple_menu_model.h"
15 #include "ui/gfx/image/image_skia.h"
16 16
17 class StatusIcon; 17 class StatusIcon;
18 class StatusTray; 18 class StatusTray;
19 19
20 // This indicator is owned by MediaInternals and deleted when MediaInternals 20 // This indicator is owned by MediaInternals and deleted when MediaInternals
21 // is deleted. 21 // is deleted.
22 class MediaStreamCaptureIndicator 22 class MediaStreamCaptureIndicator
23 : public base::RefCountedThreadSafe<MediaStreamCaptureIndicator>, 23 : public base::RefCountedThreadSafe<MediaStreamCaptureIndicator>,
24 public ui::SimpleMenuModel::Delegate { 24 public ui::SimpleMenuModel::Delegate {
25 public: 25 public:
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 // Updates the status tray tooltip with the new device list. This function is 124 // Updates the status tray tooltip with the new device list. This function is
125 // called by UpdateStatusTrayIconContextMenu(). 125 // called by UpdateStatusTrayIconContextMenu().
126 void UpdateStatusTrayIconTooltip(bool audio, bool video); 126 void UpdateStatusTrayIconTooltip(bool audio, bool video);
127 127
128 // Reference to our status icon - owned by the StatusTray. If null, 128 // Reference to our status icon - owned by the StatusTray. If null,
129 // the platform doesn't support status icons. 129 // the platform doesn't support status icons.
130 StatusIcon* status_icon_; 130 StatusIcon* status_icon_;
131 131
132 // Icon to be displayed on the status tray. 132 // Icon to be displayed on the status tray.
133 SkBitmap tray_image_; 133 gfx::ImageSkia tray_image_;
134 134
135 SkBitmap balloon_image_; 135 gfx::ImageSkia balloon_image_;
136 136
137 // A list that contains the usage information of the opened capture devices. 137 // A list that contains the usage information of the opened capture devices.
138 typedef std::vector<CaptureDeviceTab> CaptureDeviceTabs; 138 typedef std::vector<CaptureDeviceTab> CaptureDeviceTabs;
139 CaptureDeviceTabs tabs_; 139 CaptureDeviceTabs tabs_;
140 }; 140 };
141 141
142 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 142 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_uninstall_dialog.cc ('k') | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698