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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc

Issue 289583002: Lock rotation when screen is manually rotated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define sources for rotation Created 6 years, 7 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: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 679bffb769b56b71b92c9ae54afe32a20d42e4ee..37ea0e8ccda0bb04e72bb5baa75813c0f0965422 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -22,6 +22,7 @@
#include "grit/ash_strings.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/display/types/display_constants.h"
#include "ui/gfx/display.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/screen.h"
@@ -500,7 +501,8 @@ void DisplayOptionsHandler::HandleSetOrientation(const base::ListValue* args) {
content::RecordAction(
base::UserMetricsAction("Options_DisplaySetOrientation"));
- GetDisplayManager()->SetDisplayRotation(display_id, new_rotation);
+ GetDisplayManager()->SetDisplayRotation(display_id, new_rotation,
+ ui::USER);
}
void DisplayOptionsHandler::HandleSetColorProfile(const base::ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698