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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 namespace history { 51 namespace history {
52 class HistoryAddPageArgs; 52 class HistoryAddPageArgs;
53 } 53 }
54 54
55 namespace webkit_glue { 55 namespace webkit_glue {
56 struct WebIntentData; 56 struct WebIntentData;
57 struct WebIntentServiceData; 57 struct WebIntentServiceData;
58 } 58 }
59 59
60 #if defined(OS_ANDROID)
61 namespace WebKit {
62 class WebLayer;
63 }
64 #endif
65
60 namespace content { 66 namespace content {
61 67
62 struct OpenURLParams; 68 struct OpenURLParams;
63 69
64 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; 70 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback;
65 71
66 // Objects implement this interface to get notified about changes in the 72 // Objects implement this interface to get notified about changes in the
67 // WebContents and to provide necessary functionality. 73 // WebContents and to provide necessary functionality.
68 class CONTENT_EXPORT WebContentsDelegate { 74 class CONTENT_EXPORT WebContentsDelegate {
69 public: 75 public:
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // Asks permission to use the camera and/or microphone. If permission is 427 // Asks permission to use the camera and/or microphone. If permission is
422 // granted, a call should be made to |callback| with the devices. If the 428 // granted, a call should be made to |callback| with the devices. If the
423 // request is denied, a call should be made to |callback| with an empty list 429 // request is denied, a call should be made to |callback| with an empty list
424 // of devices. |request| has the details of the request (e.g. which of audio 430 // of devices. |request| has the details of the request (e.g. which of audio
425 // and/or video devices are requested, and lists of available devices). 431 // and/or video devices are requested, and lists of available devices).
426 virtual void RequestMediaAccessPermission( 432 virtual void RequestMediaAccessPermission(
427 WebContents* web_contents, 433 WebContents* web_contents,
428 const MediaStreamRequest* request, 434 const MediaStreamRequest* request,
429 const MediaResponseCallback& callback) {} 435 const MediaResponseCallback& callback) {}
430 436
437 virtual void AttachLayer(WebContents* web_contents,
jam 2012/08/30 18:51:54 this needs to be behind OS_ANDROID as well. can y
no sievers 2012/08/31 01:31:11 See comment in render_view_host_delegate.h. I remo
438 WebKit::WebLayer* layer) {}
439 virtual void RemoveLayer(WebContents* web_contents,
440 WebKit::WebLayer* layer) {}
431 protected: 441 protected:
432 virtual ~WebContentsDelegate(); 442 virtual ~WebContentsDelegate();
433 443
434 private: 444 private:
435 friend class ::WebContentsImpl; 445 friend class ::WebContentsImpl;
436 446
437 // Called when |this| becomes the WebContentsDelegate for |source|. 447 // Called when |this| becomes the WebContentsDelegate for |source|.
438 void Attach(WebContents* source); 448 void Attach(WebContents* source);
439 449
440 // Called when |this| is no longer the WebContentsDelegate for |source|. 450 // Called when |this| is no longer the WebContentsDelegate for |source|.
441 void Detach(WebContents* source); 451 void Detach(WebContents* source);
442 452
443 // The WebContents that this is currently a delegate for. 453 // The WebContents that this is currently a delegate for.
444 std::set<WebContents*> attached_contents_; 454 std::set<WebContents*> attached_contents_;
445 }; 455 };
446 456
447 } // namespace content 457 } // namespace content
448 458
449 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 459 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698