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

Side by Side Diff: ui/views/widget/widget.h

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (delegating IsDocked to non… Created 7 years, 1 month 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 | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 void Restore(); 471 void Restore();
472 472
473 // Whether or not the window is maximized or minimized. 473 // Whether or not the window is maximized or minimized.
474 virtual bool IsMaximized() const; 474 virtual bool IsMaximized() const;
475 bool IsMinimized() const; 475 bool IsMinimized() const;
476 476
477 // Accessors for fullscreen state. 477 // Accessors for fullscreen state.
478 void SetFullscreen(bool fullscreen); 478 void SetFullscreen(bool fullscreen);
479 bool IsFullscreen() const; 479 bool IsFullscreen() const;
480 480
481 // Whether the window is docked (only possible on Ash).
482 bool IsDocked() const;
sky 2013/10/29 16:36:06 Ben is trying to keep ash specific state out of vi
varkha 2013/10/29 17:06:18 Not sure I follow. How can I not introduce somethi
varkha 2013/10/29 18:28:03 Done.
483
481 // Sets the opacity of the widget. This may allow widgets behind the widget 484 // Sets the opacity of the widget. This may allow widgets behind the widget
482 // in the Z-order to become visible, depending on the capabilities of the 485 // in the Z-order to become visible, depending on the capabilities of the
483 // underlying windowing system. 486 // underlying windowing system.
484 void SetOpacity(unsigned char opacity); 487 void SetOpacity(unsigned char opacity);
485 488
486 // Sets whether or not the window should show its frame as a "transient drag 489 // Sets whether or not the window should show its frame as a "transient drag
487 // frame" - slightly transparent and without the standard window controls. 490 // frame" - slightly transparent and without the standard window controls.
488 void SetUseDragFrame(bool use_drag_frame); 491 void SetUseDragFrame(bool use_drag_frame);
489 492
490 // Flashes the frame of the window to draw attention to it. Currently only 493 // Flashes the frame of the window to draw attention to it. Currently only
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 // True when window movement via mouse interaction with the frame should be 895 // True when window movement via mouse interaction with the frame should be
893 // disabled. 896 // disabled.
894 bool movement_disabled_; 897 bool movement_disabled_;
895 898
896 DISALLOW_COPY_AND_ASSIGN(Widget); 899 DISALLOW_COPY_AND_ASSIGN(Widget);
897 }; 900 };
898 901
899 } // namespace views 902 } // namespace views
900 903
901 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 904 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698