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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <list> 10 #include <list>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // RenderWidgetHostView implementation. 184 // RenderWidgetHostView implementation.
185 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 185 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
186 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 186 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
187 virtual void SetSize(const gfx::Size& size) OVERRIDE; 187 virtual void SetSize(const gfx::Size& size) OVERRIDE;
188 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 188 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
189 virtual gfx::NativeView GetNativeView() const OVERRIDE; 189 virtual gfx::NativeView GetNativeView() const OVERRIDE;
190 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 190 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
191 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 191 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
192 virtual bool HasFocus() const OVERRIDE; 192 virtual bool HasFocus() const OVERRIDE;
193 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
193 virtual void Show() OVERRIDE; 194 virtual void Show() OVERRIDE;
194 virtual void Hide() OVERRIDE; 195 virtual void Hide() OVERRIDE;
195 virtual bool IsShowing() OVERRIDE; 196 virtual bool IsShowing() OVERRIDE;
196 virtual gfx::Rect GetViewBounds() const OVERRIDE; 197 virtual gfx::Rect GetViewBounds() const OVERRIDE;
197 virtual void SetShowingContextMenu(bool showing) OVERRIDE; 198 virtual void SetShowingContextMenu(bool showing) OVERRIDE;
198 virtual void SetActive(bool active) OVERRIDE; 199 virtual void SetActive(bool active) OVERRIDE;
199 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; 200 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE;
200 virtual void SetWindowVisibility(bool visible) OVERRIDE; 201 virtual void SetWindowVisibility(bool visible) OVERRIDE;
201 virtual void WindowFrameChanged() OVERRIDE; 202 virtual void WindowFrameChanged() OVERRIDE;
202 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 203 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_; 427 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_;
427 428
428 // List of pending swaps for deferred acking: 429 // List of pending swaps for deferred acking:
429 // pairs of (route_id, gpu_host_id). 430 // pairs of (route_id, gpu_host_id).
430 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_; 431 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_;
431 432
432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
433 }; 434 };
434 435
435 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698