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

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

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for landing Created 8 years, 6 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_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // RenderWidgetHostView implementation. 162 // RenderWidgetHostView implementation.
163 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 163 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
164 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 164 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
165 virtual void SetSize(const gfx::Size& size) OVERRIDE; 165 virtual void SetSize(const gfx::Size& size) OVERRIDE;
166 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 166 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
167 virtual gfx::NativeView GetNativeView() const OVERRIDE; 167 virtual gfx::NativeView GetNativeView() const OVERRIDE;
168 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 168 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
169 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 169 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
170 virtual bool HasFocus() const OVERRIDE; 170 virtual bool HasFocus() const OVERRIDE;
171 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
171 virtual void Show() OVERRIDE; 172 virtual void Show() OVERRIDE;
172 virtual void Hide() OVERRIDE; 173 virtual void Hide() OVERRIDE;
173 virtual bool IsShowing() OVERRIDE; 174 virtual bool IsShowing() OVERRIDE;
174 virtual gfx::Rect GetViewBounds() const OVERRIDE; 175 virtual gfx::Rect GetViewBounds() const OVERRIDE;
175 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 176 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
176 177
177 // Implementation of RenderWidgetHostViewPort. 178 // Implementation of RenderWidgetHostViewPort.
178 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, 179 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view,
179 const gfx::Rect& pos) OVERRIDE; 180 const gfx::Rect& pos) OVERRIDE;
180 virtual void InitAsFullscreen( 181 virtual void InitAsFullscreen(
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 564
564 // Are touch events currently enabled? 565 // Are touch events currently enabled?
565 bool touch_events_enabled_; 566 bool touch_events_enabled_;
566 567
567 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 568 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
568 569
569 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 570 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
570 }; 571 };
571 572
572 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698