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

Side by Side Diff: ui/wm/core/window_modality_controller.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: 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 UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
6 #define UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 6 #define UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void OnMouseEvent(ui::MouseEvent* event) override; 42 void OnMouseEvent(ui::MouseEvent* event) override;
43 void OnTouchEvent(ui::TouchEvent* event) override; 43 void OnTouchEvent(ui::TouchEvent* event) override;
44 44
45 // Overridden from aura::EnvObserver: 45 // Overridden from aura::EnvObserver:
46 void OnWindowInitialized(aura::Window* window) override; 46 void OnWindowInitialized(aura::Window* window) override;
47 47
48 // Overridden from aura::WindowObserver: 48 // Overridden from aura::WindowObserver:
49 void OnWindowPropertyChanged(aura::Window* window, 49 void OnWindowPropertyChanged(aura::Window* window,
50 const void* key, 50 const void* key,
51 intptr_t old) override; 51 intptr_t old) override;
52 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 52 void OnWindowVisibilityChanged(aura::Window* window, bool visible,
53 bool content_visible) override;
53 void OnWindowDestroyed(aura::Window* window) override; 54 void OnWindowDestroyed(aura::Window* window) override;
54 55
55 private: 56 private:
56 // Processes a mouse/touch event, and returns true if the event should be 57 // Processes a mouse/touch event, and returns true if the event should be
57 // consumed. 58 // consumed.
58 bool ProcessLocatedEvent(aura::Window* target, 59 bool ProcessLocatedEvent(aura::Window* target,
59 ui::LocatedEvent* event); 60 ui::LocatedEvent* event);
60 61
61 std::vector<aura::Window*> windows_; 62 std::vector<aura::Window*> windows_;
62 63
63 ui::EventTarget* event_target_; 64 ui::EventTarget* event_target_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(WindowModalityController); 66 DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
66 }; 67 };
67 68
68 } // namespace wm 69 } // namespace wm
69 70
70 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 71 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698