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

Side by Side Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.h

Issue 2747543002: ash: Start/stop observing KeyboardController via ShellObserver (Closed)
Patch Set: update LockLayoutManager to use similar logic Created 3 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
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // PowerManagerClient::Observer: 132 // PowerManagerClient::Observer:
133 void SuspendImminent() override; 133 void SuspendImminent() override;
134 void SuspendDone(const base::TimeDelta& sleep_duration) override; 134 void SuspendDone(const base::TimeDelta& sleep_duration) override;
135 void LidEventReceived(bool open, const base::TimeTicks& time) override; 135 void LidEventReceived(bool open, const base::TimeTicks& time) override;
136 136
137 // content::WebContentsObserver: 137 // content::WebContentsObserver:
138 void RenderProcessGone(base::TerminationStatus status) override; 138 void RenderProcessGone(base::TerminationStatus status) override;
139 139
140 // ash::ShellObserver: 140 // ash::ShellObserver:
141 void OnVirtualKeyboardStateChanged(bool activated) override; 141 void OnVirtualKeyboardStateChanged(bool activated,
142 ash::WmWindow* root_window) override;
142 143
143 // keyboard::KeyboardControllerObserver: 144 // keyboard::KeyboardControllerObserver:
144 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 145 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
145 void OnKeyboardClosed() override; 146 void OnKeyboardClosed() override;
146 147
147 // display::DisplayObserver: 148 // display::DisplayObserver:
148 void OnDisplayAdded(const display::Display& new_display) override; 149 void OnDisplayAdded(const display::Display& new_display) override;
149 void OnDisplayRemoved(const display::Display& old_display) override; 150 void OnDisplayRemoved(const display::Display& old_display) override;
150 void OnDisplayMetricsChanged(const display::Display& display, 151 void OnDisplayMetricsChanged(const display::Display& display,
151 uint32_t changed_metrics) override; 152 uint32_t changed_metrics) override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool is_observing_keyboard_ = false; 196 bool is_observing_keyboard_ = false;
196 197
197 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; 198 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); 200 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker);
200 }; 201 };
201 202
202 } // namespace chromeos 203 } // namespace chromeos
203 204
204 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_ 205 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WEBUI_SCREEN_LOCKER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698