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

Side by Side Diff: content/browser/web_contents/web_contents_view_guest.h

Issue 21777003: DevTools: [Android] implement RenderWidgetHostViewAndroid::CopyFromCompositingSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang bots. Created 7 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool right_aligned, 84 bool right_aligned,
85 bool allow_multiple_selection) OVERRIDE; 85 bool allow_multiple_selection) OVERRIDE;
86 virtual void StartDragging(const DropData& drop_data, 86 virtual void StartDragging(const DropData& drop_data,
87 WebKit::WebDragOperationsMask allowed_ops, 87 WebKit::WebDragOperationsMask allowed_ops,
88 const gfx::ImageSkia& image, 88 const gfx::ImageSkia& image,
89 const gfx::Vector2d& image_offset, 89 const gfx::Vector2d& image_offset,
90 const DragEventSourceInfo& event_info) OVERRIDE; 90 const DragEventSourceInfo& event_info) OVERRIDE;
91 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 91 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
92 virtual void GotFocus() OVERRIDE; 92 virtual void GotFocus() OVERRIDE;
93 virtual void TakeFocus(bool reverse) OVERRIDE; 93 virtual void TakeFocus(bool reverse) OVERRIDE;
94 virtual bool GrabSnapshot(const std::string& format,
95 int quality,
96 double scale,
97 std::vector<uint8>* data) OVERRIDE;
94 98
95 private: 99 private:
96 // The WebContentsImpl whose contents we display. 100 // The WebContentsImpl whose contents we display.
97 WebContentsImpl* web_contents_; 101 WebContentsImpl* web_contents_;
98 BrowserPluginGuest* guest_; 102 BrowserPluginGuest* guest_;
99 // The platform dependent view backing this WebContentsView. 103 // The platform dependent view backing this WebContentsView.
100 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|. 104 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|.
101 scoped_ptr<WebContentsViewPort> platform_view_; 105 scoped_ptr<WebContentsViewPort> platform_view_;
102 gfx::Size size_; 106 gfx::Size size_;
103 107
104 // Delegate view for guest's platform view. 108 // Delegate view for guest's platform view.
105 RenderViewHostDelegateView* platform_view_delegate_view_; 109 RenderViewHostDelegateView* platform_view_delegate_view_;
106 110
107 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); 111 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest);
108 }; 112 };
109 113
110 } // namespace content 114 } // namespace content
111 115
112 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 116 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698