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

Unified Diff: ui/views/controls/native/native_view_host_aura_unittest.cc

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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/native/native_view_host_aura_unittest.cc
diff --git a/ui/views/controls/native/native_view_host_aura_unittest.cc b/ui/views/controls/native/native_view_host_aura_unittest.cc
index 5f03fc86ee3771fc5f7877801296a32f8f2e3c9b..6d3f76850311326acc35be12a34622da7ddd633e 100644
--- a/ui/views/controls/native/native_view_host_aura_unittest.cc
+++ b/ui/views/controls/native/native_view_host_aura_unittest.cc
@@ -45,7 +45,8 @@ class NativeViewHostWindowObserver : public aura::WindowObserver {
const std::vector<EventDetails>& events() const { return events_; }
// aura::WindowObserver overrides
- void OnWindowVisibilityChanged(aura::Window* window, bool visible) override {
+ void OnWindowVisibilityChanged(aura::Window* window, bool visible,
+ bool content_visible) override {
EventDetails event;
event.type = visible ? EVENT_SHOWN : EVENT_HIDDEN;
event.window = window;

Powered by Google App Engine
This is Rietveld 408576698