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

Side by Side Diff: content/public/browser/render_widget_host_view.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
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Retrieves the native view used to contain plugins and identify the 76 // Retrieves the native view used to contain plugins and identify the
77 // renderer in IPC messages. 77 // renderer in IPC messages.
78 virtual gfx::NativeView GetNativeView() const = 0; 78 virtual gfx::NativeView GetNativeView() const = 0;
79 virtual gfx::NativeViewId GetNativeViewId() const = 0; 79 virtual gfx::NativeViewId GetNativeViewId() const = 0;
80 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; 80 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
81 81
82 // Set focus to the associated View component. 82 // Set focus to the associated View component.
83 virtual void Focus() = 0; 83 virtual void Focus() = 0;
84 // Returns true if the View currently has the focus. 84 // Returns true if the View currently has the focus.
85 virtual bool HasFocus() const = 0; 85 virtual bool HasFocus() const = 0;
86 // Returns true is the current display surface is available.
87 virtual bool IsSurfaceAvailableForCopy() const = 0;
86 88
87 // Shows/hides the view. These must always be called together in pairs. 89 // Shows/hides the view. These must always be called together in pairs.
88 // It is not legal to call Hide() multiple times in a row. 90 // It is not legal to call Hide() multiple times in a row.
89 virtual void Show() = 0; 91 virtual void Show() = 0;
90 virtual void Hide() = 0; 92 virtual void Hide() = 0;
91 93
92 // Whether the view is showing. 94 // Whether the view is showing.
93 virtual bool IsShowing() = 0; 95 virtual bool IsShowing() = 0;
94 96
95 // Retrieve the bounds of the View, in screen coordinates. 97 // Retrieve the bounds of the View, in screen coordinates.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Return value indicates whether the mouse is locked successfully or not. 145 // Return value indicates whether the mouse is locked successfully or not.
144 virtual bool LockMouse() = 0; 146 virtual bool LockMouse() = 0;
145 virtual void UnlockMouse() = 0; 147 virtual void UnlockMouse() = 0;
146 // Returns true if the mouse pointer is currently locked. 148 // Returns true if the mouse pointer is currently locked.
147 virtual bool IsMouseLocked() = 0; 149 virtual bool IsMouseLocked() = 0;
148 }; 150 };
149 151
150 } // namespace content 152 } // namespace content
151 153
152 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 154 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698