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

Unified Diff: extensions/components/native_app_window/native_app_window_views.cc

Issue 2934513003: Changes in app.window and app.runtime to support lock screen note taking (Closed)
Patch Set: . Created 3 years, 6 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 | « extensions/common/api/app_window.idl ('k') | extensions/shell/browser/shell_app_window_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/components/native_app_window/native_app_window_views.cc
diff --git a/extensions/components/native_app_window/native_app_window_views.cc b/extensions/components/native_app_window/native_app_window_views.cc
index ba2d185f89470425565a437e9f11d1b3e2f59d42..59638ed1d3273176509a23b017b0f859b7064a0a 100644
--- a/extensions/components/native_app_window/native_app_window_views.cc
+++ b/extensions/components/native_app_window/native_app_window_views.cc
@@ -219,7 +219,7 @@ bool NativeAppWindowViews::CanMaximize() const {
}
bool NativeAppWindowViews::CanMinimize() const {
- return true;
+ return !app_window_->show_on_lock_screen();
}
base::string16 NativeAppWindowViews::GetWindowTitle() const {
« no previous file with comments | « extensions/common/api/app_window.idl ('k') | extensions/shell/browser/shell_app_window_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698