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

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

Issue 21777003: DevTools: [Android] implement RenderWidgetHostViewAndroid::CopyFromCompositingSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/port/browser/render_view_host_delegate_view.h" 10 #include "content/port/browser/render_view_host_delegate_view.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool right_aligned, 72 bool right_aligned,
73 bool allow_multiple_selection) OVERRIDE; 73 bool allow_multiple_selection) OVERRIDE;
74 virtual void StartDragging(const DropData& drop_data, 74 virtual void StartDragging(const DropData& drop_data,
75 WebKit::WebDragOperationsMask allowed_ops, 75 WebKit::WebDragOperationsMask allowed_ops,
76 const gfx::ImageSkia& image, 76 const gfx::ImageSkia& image,
77 const gfx::Vector2d& image_offset, 77 const gfx::Vector2d& image_offset,
78 const DragEventSourceInfo& event_info) OVERRIDE; 78 const DragEventSourceInfo& event_info) OVERRIDE;
79 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 79 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
80 virtual void GotFocus() OVERRIDE; 80 virtual void GotFocus() OVERRIDE;
81 virtual void TakeFocus(bool reverse) OVERRIDE; 81 virtual void TakeFocus(bool reverse) OVERRIDE;
82 virtual bool GrabSnapshot(std::vector<uint8>* png) OVERRIDE;
82 83
83 private: 84 private:
84 // The WebContents whose contents we display. 85 // The WebContents whose contents we display.
85 WebContentsImpl* web_contents_; 86 WebContentsImpl* web_contents_;
86 87
87 // ContentViewCoreImpl is our interface to the view system. 88 // ContentViewCoreImpl is our interface to the view system.
88 ContentViewCoreImpl* content_view_core_; 89 ContentViewCoreImpl* content_view_core_;
89 90
90 // Interface for extensions to WebContentsView. Used to show the context menu. 91 // Interface for extensions to WebContentsView. Used to show the context menu.
91 scoped_ptr<WebContentsViewDelegate> delegate_; 92 scoped_ptr<WebContentsViewDelegate> delegate_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 94 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
94 }; 95 };
95 96
96 } // namespace content 97 } // namespace content
97 98
98 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 99 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698