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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.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: Providing implementations for the other platforms Created 8 years, 7 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_GTK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // RenderWidgetHostView implementation. 49 // RenderWidgetHostView implementation.
50 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 50 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
51 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 51 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
52 virtual void SetSize(const gfx::Size& size) OVERRIDE; 52 virtual void SetSize(const gfx::Size& size) OVERRIDE;
53 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 53 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
54 virtual gfx::NativeView GetNativeView() const OVERRIDE; 54 virtual gfx::NativeView GetNativeView() const OVERRIDE;
55 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 55 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
56 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 56 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
57 virtual bool HasFocus() const OVERRIDE; 57 virtual bool HasFocus() const OVERRIDE;
58 virtual bool HasSurface() const OVERRIDE;
58 virtual void Show() OVERRIDE; 59 virtual void Show() OVERRIDE;
59 virtual void Hide() OVERRIDE; 60 virtual void Hide() OVERRIDE;
60 virtual bool IsShowing() OVERRIDE; 61 virtual bool IsShowing() OVERRIDE;
61 virtual gfx::Rect GetViewBounds() const OVERRIDE; 62 virtual gfx::Rect GetViewBounds() const OVERRIDE;
62 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; 63 virtual GdkEventButton* GetLastMouseDown() OVERRIDE;
63 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; 64 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE;
64 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 65 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
65 66
66 // RenderWidgetHostViewPort implementation. 67 // RenderWidgetHostViewPort implementation.
67 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, 68 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view,
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 gfx::PluginWindowHandle compositing_surface_; 285 gfx::PluginWindowHandle compositing_surface_;
285 286
286 // The event for the last mouse down we handled. We need this for context 287 // The event for the last mouse down we handled. We need this for context
287 // menus and drags. 288 // menus and drags.
288 GdkEventButton* last_mouse_down_; 289 GdkEventButton* last_mouse_down_;
289 290
290 ui::GtkSignalRegistrar signals_; 291 ui::GtkSignalRegistrar signals_;
291 }; 292 };
292 293
293 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 294 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698