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

Unified Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.h

Issue 882423002: Listen OnDisplayMetricsChanged on lock screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/lock/webui_screen_locker.h
diff --git a/chrome/browser/chromeos/login/lock/webui_screen_locker.h b/chrome/browser/chromeos/login/lock/webui_screen_locker.h
index 95b30655e343e9971e9728e4a762eab00eda8984..c1f7b4c43af5813b7871b4ee2f382c7903f2a76c 100644
--- a/chrome/browser/chromeos/login/lock/webui_screen_locker.h
+++ b/chrome/browser/chromeos/login/lock/webui_screen_locker.h
@@ -20,6 +20,7 @@
#include "chrome/browser/chromeos/login/ui/login_display.h"
#include "chrome/browser/chromeos/login/ui/webui_login_view.h"
#include "chromeos/dbus/power_manager_client.h"
+#include "ui/gfx/display_observer.h"
#include "ui/keyboard/keyboard_controller_observer.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
@@ -52,7 +53,8 @@ class WebUIScreenLocker : public WebUILoginView,
public views::WidgetObserver,
public PowerManagerClient::Observer,
public ash::VirtualKeyboardStateObserver,
- public keyboard::KeyboardControllerObserver {
+ public keyboard::KeyboardControllerObserver,
+ public gfx::DisplayObserver {
public:
explicit WebUIScreenLocker(ScreenLocker* screen_locker);
@@ -112,6 +114,12 @@ class WebUIScreenLocker : public WebUILoginView,
// Overridden from keyboard::KeyboardControllerObserver:
void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
+ // Overridden from gfx::DisplayObserver:
oshima 2015/01/29 15:29:06 nit: can you update these comments to new style?
Dmitry Polukhin 2015/01/29 15:39:17 Sorry, what do you mean by "new style"? I don't se
oshima 2015/01/29 16:16:09 // ClassName: like // gfx::DisplayObserver: no
Dmitry Polukhin 2015/01/30 13:08:08 Done.
+ void OnDisplayAdded(const gfx::Display& new_display) override;
+ void OnDisplayRemoved(const gfx::Display& old_display) override;
+ void OnDisplayMetricsChanged(const gfx::Display& display,
+ uint32_t changed_metrics) override;
+
// Returns instance of the OOBE WebUI.
OobeUI* GetOobeUI();
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/lock/webui_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698