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

Side by Side Diff: ui/wm/core/focus_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: remove the VisibilityNotify event handler Created 5 years, 9 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_FOCUS_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_
6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_ 6 #define UI_WM_CORE_FOCUS_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 aura::Window* GetFocusedWindow() override; 63 aura::Window* GetFocusedWindow() override;
64 64
65 // Overridden from ui::EventHandler: 65 // Overridden from ui::EventHandler:
66 void OnKeyEvent(ui::KeyEvent* event) override; 66 void OnKeyEvent(ui::KeyEvent* event) override;
67 void OnMouseEvent(ui::MouseEvent* event) override; 67 void OnMouseEvent(ui::MouseEvent* event) override;
68 void OnScrollEvent(ui::ScrollEvent* event) override; 68 void OnScrollEvent(ui::ScrollEvent* event) override;
69 void OnTouchEvent(ui::TouchEvent* event) override; 69 void OnTouchEvent(ui::TouchEvent* event) override;
70 void OnGestureEvent(ui::GestureEvent* event) override; 70 void OnGestureEvent(ui::GestureEvent* event) override;
71 71
72 // Overridden from aura::WindowObserver: 72 // Overridden from aura::WindowObserver:
73 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 73 void OnWindowVisibilityChanged(aura::Window* window, bool visible,
74 bool contentVisible) override;
Elliot Glaysher 2015/03/03 00:33:52 nit: camel case doesn't match the cc file, use uni
74 void OnWindowDestroying(aura::Window* window) override; 75 void OnWindowDestroying(aura::Window* window) override;
75 void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override; 76 void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override;
76 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; 77 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override;
77 78
78 // Internal implementation that sets the focused window, fires events etc. 79 // Internal implementation that sets the focused window, fires events etc.
79 // This function must be called with a valid focusable window. 80 // This function must be called with a valid focusable window.
80 void SetFocusedWindow(aura::Window* window); 81 void SetFocusedWindow(aura::Window* window);
81 82
82 // Internal implementation that sets the active window, fires events etc. 83 // Internal implementation that sets the active window, fires events etc.
83 // This function must be called with a valid |activatable_window|. 84 // This function must be called with a valid |activatable_window|.
(...skipping 27 matching lines...) Expand all
111 ObserverList<aura::client::FocusChangeObserver> focus_observers_; 112 ObserverList<aura::client::FocusChangeObserver> focus_observers_;
112 113
113 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; 114 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(FocusController); 116 DISALLOW_COPY_AND_ASSIGN(FocusController);
116 }; 117 };
117 118
118 } // namespace wm 119 } // namespace wm
119 120
120 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_ 121 #endif // UI_WM_CORE_FOCUS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698