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

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

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef Attach/RemoveLayer API 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 namespace IPC { 40 namespace IPC {
41 class Message; 41 class Message;
42 } 42 }
43 43
44 namespace gfx { 44 namespace gfx {
45 class Point; 45 class Point;
46 class Rect; 46 class Rect;
47 class Size; 47 class Size;
48 } 48 }
49 49
50 #if defined(OS_ANDROID)
jam 2012/09/04 16:44:48 nit: since this class exists on all platforms, get
51 namespace WebKit {
52 class WebLayer;
53 }
54 #endif
55
50 namespace content { 56 namespace content {
51 57
52 class BrowserContext; 58 class BrowserContext;
53 class RenderViewHost; 59 class RenderViewHost;
54 class RenderViewHostDelegateView; 60 class RenderViewHostDelegateView;
55 class SessionStorageNamespace; 61 class SessionStorageNamespace;
56 class WebContents; 62 class WebContents;
57 struct ContextMenuParams; 63 struct ContextMenuParams;
58 struct FileChooserParams; 64 struct FileChooserParams;
59 struct GlobalRequestID; 65 struct GlobalRequestID;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // provided in the supplied params. 408 // provided in the supplied params.
403 virtual void ShowContextMenu(const ContextMenuParams& params) {} 409 virtual void ShowContextMenu(const ContextMenuParams& params) {}
404 410
405 // The render view has requested access to media devices listed in 411 // The render view has requested access to media devices listed in
406 // |request|, and the client should grant or deny that permission by 412 // |request|, and the client should grant or deny that permission by
407 // calling |callback|. 413 // calling |callback|.
408 virtual void RequestMediaAccessPermission( 414 virtual void RequestMediaAccessPermission(
409 const MediaStreamRequest* request, 415 const MediaStreamRequest* request,
410 const MediaResponseCallback& callback) {} 416 const MediaResponseCallback& callback) {}
411 417
418 #if defined(OS_ANDROID)
419 virtual void AttachLayer(WebKit::WebLayer* layer) {}
420 virtual void RemoveLayer(WebKit::WebLayer* layer) {}
421 #endif
422
412 protected: 423 protected:
413 virtual ~RenderViewHostDelegate() {} 424 virtual ~RenderViewHostDelegate() {}
414 }; 425 };
415 426
416 } // namespace content 427 } // namespace content
417 428
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698