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

Side by Side Diff: content/browser/web_contents/web_contents_view_gtk.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_GTK_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool right_aligned, 81 bool right_aligned,
82 bool allow_multiple_selection) OVERRIDE; 82 bool allow_multiple_selection) OVERRIDE;
83 virtual void StartDragging(const DropData& drop_data, 83 virtual void StartDragging(const DropData& drop_data,
84 WebKit::WebDragOperationsMask allowed_ops, 84 WebKit::WebDragOperationsMask allowed_ops,
85 const gfx::ImageSkia& image, 85 const gfx::ImageSkia& image,
86 const gfx::Vector2d& image_offset, 86 const gfx::Vector2d& image_offset,
87 const DragEventSourceInfo& event_info) OVERRIDE; 87 const DragEventSourceInfo& event_info) OVERRIDE;
88 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 88 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
89 virtual void GotFocus() OVERRIDE; 89 virtual void GotFocus() OVERRIDE;
90 virtual void TakeFocus(bool reverse) OVERRIDE; 90 virtual void TakeFocus(bool reverse) OVERRIDE;
91 virtual bool GrabSnapshot(const std::string& format,
92 int quality,
93 double scale,
94 std::vector<uint8>* data) OVERRIDE;
91 95
92 private: 96 private:
93 // Insert the given widget into the content area. Should only be used for 97 // Insert the given widget into the content area. Should only be used for
94 // web pages and the like (including interstitials and sad tab). Note that 98 // web pages and the like (including interstitials and sad tab). Note that
95 // this will be perfectly happy to insert overlapping render views, so care 99 // this will be perfectly happy to insert overlapping render views, so care
96 // should be taken that the correct one is hidden/shown. 100 // should be taken that the correct one is hidden/shown.
97 void InsertIntoContentArea(GtkWidget* widget); 101 void InsertIntoContentArea(GtkWidget* widget);
98 102
99 // Replaces, or updates, the existing WebDragDestGtk with one for |new_host|. 103 // Replaces, or updates, the existing WebDragDestGtk with one for |new_host|.
100 // This must be called when swapping in, or creating a swapped in, RVH. 104 // This must be called when swapping in, or creating a swapped in, RVH.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // The size we want the view to be. We keep this in a separate variable 142 // The size we want the view to be. We keep this in a separate variable
139 // because resizing in GTK+ is async. 143 // because resizing in GTK+ is async.
140 gfx::Size requested_size_; 144 gfx::Size requested_size_;
141 145
142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
143 }; 147 };
144 148
145 } // namespace content 149 } // namespace content
146 150
147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698