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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 866443003: Push API: Don't require notification if tab is visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ycm_outdir
Patch Set: Expose WebContents::IsHiddenIgnoringCapturing instead of PushMessagingService::IsWebContentsUserVis… 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void DidGetRedirectForResourceRequest( 173 void DidGetRedirectForResourceRequest(
174 RenderFrameHost* render_frame_host, 174 RenderFrameHost* render_frame_host,
175 const ResourceRedirectDetails& details); 175 const ResourceRedirectDetails& details);
176 176
177 WebContentsView* GetView() const; 177 WebContentsView* GetView() const;
178 178
179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { 179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
180 return screen_orientation_dispatcher_host_.get(); 180 return screen_orientation_dispatcher_host_.get();
181 } 181 }
182 182
183 bool should_normally_be_visible() { return should_normally_be_visible_; }
184
185 // Indicate if the window has been occluded, and pass this to the views, only 183 // Indicate if the window has been occluded, and pass this to the views, only
186 // if there is no active capture going on (otherwise it is dropped on the 184 // if there is no active capture going on (otherwise it is dropped on the
187 // floor). 185 // floor).
188 void WasOccluded(); 186 void WasOccluded();
189 void WasUnOccluded(); 187 void WasUnOccluded();
190 188
191 // Broadcasts the mode change to all frames. 189 // Broadcasts the mode change to all frames.
192 void SetAccessibilityMode(AccessibilityMode mode); 190 void SetAccessibilityMode(AccessibilityMode mode);
193 191
194 // Adds the given accessibility mode to the current accessibility mode 192 // Adds the given accessibility mode to the current accessibility mode
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void DecrementCapturerCount() override; 253 void DecrementCapturerCount() override;
256 int GetCapturerCount() const override; 254 int GetCapturerCount() const override;
257 bool IsAudioMuted() const override; 255 bool IsAudioMuted() const override;
258 void SetAudioMuted(bool mute) override; 256 void SetAudioMuted(bool mute) override;
259 bool IsCrashed() const override; 257 bool IsCrashed() const override;
260 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 258 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
261 base::TerminationStatus GetCrashedStatus() const override; 259 base::TerminationStatus GetCrashedStatus() const override;
262 bool IsBeingDestroyed() const override; 260 bool IsBeingDestroyed() const override;
263 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 261 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
264 base::TimeTicks GetLastActiveTime() const override; 262 base::TimeTicks GetLastActiveTime() const override;
263 bool IsHiddenIgnoringCapturing() const override;
265 void WasShown() override; 264 void WasShown() override;
266 void WasHidden() override; 265 void WasHidden() override;
267 bool NeedToFireBeforeUnload() override; 266 bool NeedToFireBeforeUnload() override;
268 void DispatchBeforeUnload(bool for_cross_site_transition) override; 267 void DispatchBeforeUnload(bool for_cross_site_transition) override;
269 void Stop() override; 268 void Stop() override;
270 WebContents* Clone() override; 269 WebContents* Clone() override;
271 void ReloadFocusedFrame(bool ignore_cache) override; 270 void ReloadFocusedFrame(bool ignore_cache) override;
272 void Undo() override; 271 void Undo() override;
273 void Redo() override; 272 void Redo() override;
274 void Cut() override; 273 void Cut() override;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 // Adds/removes a callback called on creation of each new WebContents. 1265 // Adds/removes a callback called on creation of each new WebContents.
1267 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1266 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1268 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1267 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1269 1268
1270 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1269 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1271 }; 1270 };
1272 1271
1273 } // namespace content 1272 } // namespace content
1274 1273
1275 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1274 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698