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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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_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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 bool IsAudioMuted() const override; 257 bool IsAudioMuted() const override;
258 void SetAudioMuted(bool mute) override; 258 void SetAudioMuted(bool mute) override;
259 bool IsCrashed() const override; 259 bool IsCrashed() const override;
260 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 260 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
261 base::TerminationStatus GetCrashedStatus() const override; 261 base::TerminationStatus GetCrashedStatus() const override;
262 bool IsBeingDestroyed() const override; 262 bool IsBeingDestroyed() const override;
263 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 263 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
264 base::TimeTicks GetLastActiveTime() const override; 264 base::TimeTicks GetLastActiveTime() const override;
265 void WasShown() override; 265 void WasShown() override;
266 void WasHidden() override; 266 void WasHidden() override;
267 void WasHidden(bool content_visible) override;
267 bool NeedToFireBeforeUnload() override; 268 bool NeedToFireBeforeUnload() override;
268 void DispatchBeforeUnload(bool for_cross_site_transition) override; 269 void DispatchBeforeUnload(bool for_cross_site_transition) override;
269 void Stop() override; 270 void Stop() override;
270 WebContents* Clone() override; 271 WebContents* Clone() override;
271 void ReloadFocusedFrame(bool ignore_cache) override; 272 void ReloadFocusedFrame(bool ignore_cache) override;
272 void Undo() override; 273 void Undo() override;
273 void Redo() override; 274 void Redo() override;
274 void Cut() override; 275 void Cut() override;
275 void Copy() override; 276 void Copy() override;
276 void CopyToFindPboard() override; 277 void CopyToFindPboard() override;
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 // Adds/removes a callback called on creation of each new WebContents. 1268 // Adds/removes a callback called on creation of each new WebContents.
1268 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1269 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1269 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1270 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1270 1271
1271 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1272 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1272 }; 1273 };
1273 1274
1274 } // namespace content 1275 } // namespace content
1275 1276
1276 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1277 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698