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

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

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the VisibilityNotify event handler Created 5 years, 10 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void Focus() = 0; 82 virtual void Focus() = 0;
83 // Returns true if the View currently has the focus. 83 // Returns true if the View currently has the focus.
84 virtual bool HasFocus() const = 0; 84 virtual bool HasFocus() const = 0;
85 // Returns true is the current display surface is available. 85 // Returns true is the current display surface is available.
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 virtual void Hide(bool content_visible) = 0;
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 96 // Indicates if the view is currently occluded (e.g, not visible because it's
97 // covered up by other windows), and as a result the view's renderer may be 97 // covered up by other windows), and as a result the view's renderer may be
98 // suspended. If Show() is called on a view then its state should be re-set to 98 // suspended. If Show() is called on a view then its state should be re-set to
99 // being un-occluded (an explicit WasUnOccluded call will not be made for 99 // being un-occluded (an explicit WasUnOccluded call will not be made for
100 // that). These calls are not necessarily made in pairs. 100 // that). These calls are not necessarily made in pairs.
101 virtual void WasUnOccluded() = 0; 101 virtual void WasUnOccluded() = 0;
102 virtual void WasOccluded() = 0; 102 virtual void WasOccluded() = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // 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.
172 virtual bool IsSpeaking() const = 0; 172 virtual bool IsSpeaking() const = 0;
173 // Stops speaking, if it is currently in progress. 173 // Stops speaking, if it is currently in progress.
174 virtual void StopSpeaking() = 0; 174 virtual void StopSpeaking() = 0;
175 #endif // defined(OS_MACOSX) 175 #endif // defined(OS_MACOSX)
176 }; 176 };
177 177
178 } // namespace content 178 } // namespace content
179 179
180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698