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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 853883007: Add occlusion support to WebContentsImpl and RenderWidgetHostView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 11 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 (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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual bool IsSurfaceAvailableForCopy() const = 0; 86 virtual bool IsSurfaceAvailableForCopy() const = 0;
87 87
88 // Shows/hides the view. These must always be called together in pairs. 88 // Shows/hides the view. These must always be called together in pairs.
89 // It is not legal to call Hide() multiple times in a row. 89 // It is not legal to call Hide() multiple times in a row.
90 virtual void Show() = 0; 90 virtual void Show() = 0;
91 virtual void Hide() = 0; 91 virtual void Hide() = 0;
92 92
93 // Whether the view is showing. 93 // Whether the view is showing.
94 virtual bool IsShowing() = 0; 94 virtual bool IsShowing() = 0;
95 95
96 // Indicates if the view is currently occluded (e.g, not visible because it's
97 // covered up by other windows on Mac), and as a result the view's renderer
Avi (use Gerrit) 2015/01/16 21:47:11 Occlusion is a phenomenon that happens on all plat
ccameron 2015/01/16 21:54:07 Updated (I left a sentence at the end saying it's
98 // may be suspended. If Show() is called on a view then its state should be
99 // re-set to being un-occluded (an explicit WasUnOccluded call will not be
100 // made for that). These calls are not necessarily made in pairs.
101 virtual void WasUnOccluded() = 0;
102 virtual void WasOccluded() = 0;
103
96 // Retrieve the bounds of the View, in screen coordinates. 104 // Retrieve the bounds of the View, in screen coordinates.
97 virtual gfx::Rect GetViewBounds() const = 0; 105 virtual gfx::Rect GetViewBounds() const = 0;
98 106
99 // Returns true if the View's context menu is showing. 107 // Returns true if the View's context menu is showing.
100 virtual bool IsShowingContextMenu() const = 0; 108 virtual bool IsShowingContextMenu() const = 0;
101 109
102 // Tells the View whether the context menu is showing. 110 // Tells the View whether the context menu is showing.
103 virtual void SetShowingContextMenu(bool showing) = 0; 111 virtual void SetShowingContextMenu(bool showing) = 0;
104 112
105 // Returns the currently selected text. 113 // Returns the currently selected text.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Returns |true| if text is currently being spoken by Mac OS X. 171 // Returns |true| if text is currently being spoken by Mac OS X.
164 virtual bool IsSpeaking() const = 0; 172 virtual bool IsSpeaking() const = 0;
165 // Stops speaking, if it is currently in progress. 173 // Stops speaking, if it is currently in progress.
166 virtual void StopSpeaking() = 0; 174 virtual void StopSpeaking() = 0;
167 #endif // defined(OS_MACOSX) 175 #endif // defined(OS_MACOSX)
168 }; 176 };
169 177
170 } // namespace content 178 } // namespace content
171 179
172 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698