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

Side by Side Diff: sky/engine/public/web/WebFrameClient.h

Issue 689373003: Remove most of the media stack. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 #include "public/platform/WebCommon.h" 40 #include "public/platform/WebCommon.h"
41 #include "public/platform/WebURLError.h" 41 #include "public/platform/WebURLError.h"
42 #include "public/platform/WebURLRequest.h" 42 #include "public/platform/WebURLRequest.h"
43 #include <v8.h> 43 #include <v8.h>
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class WebCachedURLRequest; 47 class WebCachedURLRequest;
48 class WebDOMEvent; 48 class WebDOMEvent;
49 class WebInputEvent; 49 class WebInputEvent;
50 class WebMediaPlayer;
51 class WebMediaPlayerClient;
52 class WebNode; 50 class WebNode;
53 class WebString; 51 class WebString;
54 class WebURL; 52 class WebURL;
55 class WebURLLoader; 53 class WebURLLoader;
56 class WebURLResponse; 54 class WebURLResponse;
57 struct WebColorSuggestion; 55 struct WebColorSuggestion;
58 struct WebConsoleMessage; 56 struct WebConsoleMessage;
59 struct WebRect; 57 struct WebRect;
60 struct WebSize; 58 struct WebSize;
61 struct WebURLError; 59 struct WebURLError;
62 60
63 class WebFrameClient { 61 class WebFrameClient {
64 public: 62 public:
65 // Factory methods -----------------------------------------------------
66
67 // May return null.
68 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web MediaPlayerClient*) { return 0; }
69
70
71 // General notifications ----------------------------------------------- 63 // General notifications -----------------------------------------------
72 64
73 // A child frame was created in this frame. This is called when the frame 65 // A child frame was created in this frame. This is called when the frame
74 // is created and initialized. Takes the name of the new frame, the parent 66 // is created and initialized. Takes the name of the new frame, the parent
75 // frame and returns a new WebFrame. The WebFrame is considered in-use 67 // frame and returns a new WebFrame. The WebFrame is considered in-use
76 // until frameDetached() is called on it. 68 // until frameDetached() is called on it.
77 // Note: If you override this, you should almost certainly be overriding 69 // Note: If you override this, you should almost certainly be overriding
78 // frameDetached(). 70 // frameDetached().
79 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName) { return 0; } 71 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName) { return 0; }
80 72
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Send initial drawing parameters to a child frame that is being rendered o ut of process. 243 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
252 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } 244 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
253 245
254 protected: 246 protected:
255 virtual ~WebFrameClient() { } 247 virtual ~WebFrameClient() { }
256 }; 248 };
257 249
258 } // namespace blink 250 } // namespace blink
259 251
260 #endif 252 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/platform/WebSourceBuffer.h ('k') | sky/engine/public/web/WebMediaDevicesRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698