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

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, 4 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // Asks permission to use the camera and/or microphone. If permission is 421 // Asks permission to use the camera and/or microphone. If permission is
416 // granted, a call should be made to |callback| with the devices. If the 422 // granted, a call should be made to |callback| with the devices. If the
417 // request is denied, a call should be made to |callback| with an empty list 423 // request is denied, a call should be made to |callback| with an empty list
418 // of devices. |request| has the details of the request (e.g. which of audio 424 // of devices. |request| has the details of the request (e.g. which of audio
419 // and/or video devices are requested, and lists of available devices). 425 // and/or video devices are requested, and lists of available devices).
420 virtual void RequestMediaAccessPermission( 426 virtual void RequestMediaAccessPermission(
421 WebContents* web_contents, 427 WebContents* web_contents,
422 const MediaStreamRequest* request, 428 const MediaStreamRequest* request,
423 const MediaResponseCallback& callback) {} 429 const MediaResponseCallback& callback) {}
424 430
431 virtual void AttachLayer(WebContents* web_contents,
432 WebKit::WebLayer& layer) {}
klobag.chromium 2012/08/22 07:01:19 const WebLayer&?
433 virtual void RemoveLayer(WebContents* web_contents,
434 WebKit::WebLayer& layer) {}
425 protected: 435 protected:
426 virtual ~WebContentsDelegate(); 436 virtual ~WebContentsDelegate();
427 437
428 private: 438 private:
429 friend class ::WebContentsImpl; 439 friend class ::WebContentsImpl;
430 440
431 // Called when |this| becomes the WebContentsDelegate for |source|. 441 // Called when |this| becomes the WebContentsDelegate for |source|.
432 void Attach(WebContents* source); 442 void Attach(WebContents* source);
433 443
434 // Called when |this| is no longer the WebContentsDelegate for |source|. 444 // Called when |this| is no longer the WebContentsDelegate for |source|.
435 void Detach(WebContents* source); 445 void Detach(WebContents* source);
436 446
437 // The WebContents that this is currently a delegate for. 447 // The WebContents that this is currently a delegate for.
438 std::set<WebContents*> attached_contents_; 448 std::set<WebContents*> attached_contents_;
439 }; 449 };
440 450
441 } // namespace content 451 } // namespace content
442 452
443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698