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

Side by Side Diff: content/browser/renderer_host/video_capture_controller_event_handler.h

Issue 7101001: move EventHandler out of VideoCaptureController to make VS2005 happy (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address code review Created 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
jam 2011/05/31 20:40:22 you need to add this new file to content_browser.g
wjia(left Chromium) 2011/06/01 03:30:52 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDLER_H_
7
8 #include <map>
9
10 #include "base/time.h"
11 #include "ui/gfx/surface/transport_dib.h"
12
13 // Id used for identifying an object of VideoCaptureController.
scherkus (not reviewing) 2011/05/31 20:42:00 Id -> ID
wjia(left Chromium) 2011/06/01 03:30:52 Done.
14 typedef std::pair<int32, int> VideoCaptureControllerID;
scherkus (not reviewing) 2011/05/31 20:42:00 did you see darin's comment about using a struct i
wjia(left Chromium) 2011/06/01 03:30:52 Done.
15
16 // VideoCaptureControllerEventHandler is the interface for
17 // VideoCaptureController to use VideoCaptureHost services.
scherkus (not reviewing) 2011/05/31 20:42:00 pedantic nit: VideoCaptureController doesn't know
wjia(left Chromium) 2011/06/01 03:30:52 Done.
18 class VideoCaptureControllerEventHandler {
19 public:
20 // An Error have occurred in the VideoCaptureDevice.
21 virtual void OnError(VideoCaptureControllerID id) = 0;
22
23 // An TransportDIB have been filled with I420 video.
24 virtual void OnBufferReady(VideoCaptureControllerID id,
25 TransportDIB::Handle handle,
26 base::Time timestamp) = 0;
27
28 // The frame resolution the VideoCaptureDevice capture video in.
29 virtual void OnFrameInfo(VideoCaptureControllerID id,
30 int width,
31 int height,
32 int frame_rate) = 0;
33
34 // Report that this object can be deleted.
35 virtual void OnReadyToDelete(VideoCaptureControllerID id) = 0;
36
37 protected:
38 virtual ~VideoCaptureControllerEventHandler() {}
39 };
40
41 #endif // CONTENT_BROWSER_RENDERER_HOST_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDLER_ H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/video_capture_controller.cc ('k') | content/browser/renderer_host/video_capture_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698