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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.h

Issue 188633002: Query the preferred readback config in CopyFromBackingStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for test build issue. Created 6 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual void SetParentNativeViewAccessible( 155 virtual void SetParentNativeViewAccessible(
156 gfx::NativeViewAccessible accessible_parent) OVERRIDE; 156 gfx::NativeViewAccessible accessible_parent) OVERRIDE;
157 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; 157 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE;
158 #endif 158 #endif
159 159
160 // Overridden from ui::GestureEventHelper. 160 // Overridden from ui::GestureEventHelper.
161 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; 161 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE;
162 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; 162 virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE;
163 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; 163 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE;
164 164
165 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE;
166
165 protected: 167 protected:
166 friend class RenderWidgetHostView; 168 friend class RenderWidgetHostView;
167 169
168 private: 170 private:
169 // Destroys this view without calling |Destroy| on |platform_view_|. 171 // Destroys this view without calling |Destroy| on |platform_view_|.
170 void DestroyGuestView(); 172 void DestroyGuestView();
171 173
172 // Builds and forwards a WebKitGestureEvent to the renderer. 174 // Builds and forwards a WebKitGestureEvent to the renderer.
173 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); 175 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture);
174 176
(...skipping 10 matching lines...) Expand all
185 RenderWidgetHostViewPort* platform_view_; 187 RenderWidgetHostViewPort* platform_view_;
186 #if defined(OS_WIN) || defined(USE_AURA) 188 #if defined(OS_WIN) || defined(USE_AURA)
187 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 189 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
188 #endif // defined(OS_WIN) || defined(USE_AURA) 190 #endif // defined(OS_WIN) || defined(USE_AURA)
189 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 191 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
190 }; 192 };
191 193
192 } // namespace content 194 } // namespace content
193 195
194 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 196 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698