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

Side by Side Diff: chrome/browser/media_gallery/media_device_notifications_window_win.h

Issue 10780023: Change base::SystemMonitor's media device functions to take a type and string16 instead of a FilePa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 5 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_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string>
11
10 #include "base/basictypes.h" 12 #include "base/basictypes.h"
11 #include "base/file_path.h" 13 #include "base/file_path.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 15
14 typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive, 16 typedef LRESULT (*VolumeNameFunc)(LPCWSTR drive,
15 LPWSTR volume_name, 17 LPWSTR volume_name,
16 unsigned int volume_name_len); 18 unsigned int volume_name_len);
17 namespace chrome { 19 namespace chrome {
18 20
19 class MediaDeviceNotificationsWindowWin 21 class MediaDeviceNotificationsWindowWin
(...skipping 15 matching lines...) Expand all
35 LRESULT CALLBACK WndProc(HWND hwnd, 37 LRESULT CALLBACK WndProc(HWND hwnd,
36 UINT message, 38 UINT message,
37 WPARAM wparam, 39 WPARAM wparam,
38 LPARAM lparam); 40 LPARAM lparam);
39 41
40 static LRESULT CALLBACK WndProcThunk(HWND hwnd, 42 static LRESULT CALLBACK WndProcThunk(HWND hwnd,
41 UINT message, 43 UINT message,
42 WPARAM wparam, 44 WPARAM wparam,
43 LPARAM lparam); 45 LPARAM lparam);
44 46
45 void CheckDeviceTypeOnFileThread(unsigned int id, 47 void CheckDeviceTypeOnFileThread(const std::string& id,
46 const FilePath::StringType& device_name, 48 const FilePath::StringType& device_name,
47 const FilePath& path); 49 const FilePath& path);
50
48 void ProcessMediaDeviceAttachedOnUIThread( 51 void ProcessMediaDeviceAttachedOnUIThread(
49 unsigned int id, 52 const std::string& id,
50 const FilePath::StringType& device_name, 53 const FilePath::StringType& device_name,
51 const FilePath& path); 54 const FilePath& path);
52 55
53 // The window class of |window_|. 56 // The window class of |window_|.
54 ATOM atom_; 57 ATOM atom_;
55 58
56 // The handle of the module that contains the window procedure of |window_|. 59 // The handle of the module that contains the window procedure of |window_|.
57 HMODULE instance_; 60 HMODULE instance_;
58 61
59 HWND window_; 62 HWND window_;
60 VolumeNameFunc volume_name_func_; 63 VolumeNameFunc volume_name_func_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotificationsWindowWin); 65 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotificationsWindowWin);
63 }; 66 };
64 67
65 } // namespace chrome 68 } // namespace chrome
66 69
67 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_ 70 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_WINDOW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698