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

Unified Diff: mash/example/window_type_launcher/window_type_launcher.cc

Issue 2410633002: Moves PanelFrameView to common (Closed)
Patch Set: Created 4 years, 2 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 | « chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/example/window_type_launcher/window_type_launcher.cc
diff --git a/mash/example/window_type_launcher/window_type_launcher.cc b/mash/example/window_type_launcher/window_type_launcher.cc
index 117b6eb6c8acea6d01db7077d90b1d7df9ce06a1..07254bf7c7a9f0e60dff6ac429f143b493313de2 100644
--- a/mash/example/window_type_launcher/window_type_launcher.cc
+++ b/mash/example/window_type_launcher/window_type_launcher.cc
@@ -82,7 +82,10 @@ class WindowDelegateView : public views::WidgetDelegateView {
}
// WidgetDelegateView:
- bool CanMaximize() const override { return true; }
+ bool CanMaximize() const override {
+ // Panels can't be maximized.
+ return (traits_ & PANEL) == 0;
+ }
bool CanMinimize() const override { return true; }
bool CanResize() const override { return (traits_ & RESIZABLE) != 0; }
base::string16 GetWindowTitle() const override {
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698