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

Side by Side Diff: chrome/browser/ui/panels/panel_constants.h

Issue 320713004: Update panel layout immediately after the user has finished resizing a panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_manager.h » ('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 CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_
7 7
8 namespace panel { 8 namespace panel {
9 9
10 // The height in pixels of the titlebar. 10 // The height in pixels of the titlebar.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }; 58 };
59 59
60 // Different platforms use different modifier keys to change the behavior 60 // Different platforms use different modifier keys to change the behavior
61 // of a mouse click. This enum captures the meaning of the modifier rather 61 // of a mouse click. This enum captures the meaning of the modifier rather
62 // than the actual modifier key to generalize across platforms. 62 // than the actual modifier key to generalize across platforms.
63 enum ClickModifier { 63 enum ClickModifier {
64 NO_MODIFIER, 64 NO_MODIFIER,
65 APPLY_TO_ALL, // Apply the click behavior to all panels in the collection. 65 APPLY_TO_ALL, // Apply the click behavior to all panels in the collection.
66 }; 66 };
67 67
68 // Edge at which a panel is being resized using the mouse.
69 enum ResizingSides {
70 RESIZE_NONE = 0,
71 RESIZE_TOP,
72 RESIZE_TOP_RIGHT,
73 RESIZE_RIGHT,
74 RESIZE_BOTTOM_RIGHT,
75 RESIZE_BOTTOM,
76 RESIZE_BOTTOM_LEFT,
77 RESIZE_LEFT,
78 RESIZE_TOP_LEFT
79 };
80
81 // Ways a panel can be resized. 68 // Ways a panel can be resized.
82 enum Resizability { 69 enum Resizability {
83 NOT_RESIZABLE = 0, 70 NOT_RESIZABLE = 0,
84 RESIZABLE_TOP = 0x1, 71 RESIZABLE_TOP = 0x1,
85 RESIZABLE_BOTTOM = 0x2, 72 RESIZABLE_BOTTOM = 0x2,
86 RESIZABLE_LEFT = 0x4, 73 RESIZABLE_LEFT = 0x4,
87 RESIZABLE_RIGHT = 0x8, 74 RESIZABLE_RIGHT = 0x8,
88 RESIZABLE_TOP_LEFT = 0x10, 75 RESIZABLE_TOP_LEFT = 0x10,
89 RESIZABLE_TOP_RIGHT = 0x20, 76 RESIZABLE_TOP_RIGHT = 0x20,
90 RESIZABLE_BOTTOM_LEFT = 0x40, 77 RESIZABLE_BOTTOM_LEFT = 0x40,
91 RESIZABLE_BOTTOM_RIGHT = 0x80, 78 RESIZABLE_BOTTOM_RIGHT = 0x80,
92 RESIZABLE_EXCEPT_BOTTOM = RESIZABLE_TOP | RESIZABLE_LEFT | RESIZABLE_RIGHT | 79 RESIZABLE_EXCEPT_BOTTOM = RESIZABLE_TOP | RESIZABLE_LEFT | RESIZABLE_RIGHT |
93 RESIZABLE_TOP_LEFT | RESIZABLE_TOP_RIGHT, 80 RESIZABLE_TOP_LEFT | RESIZABLE_TOP_RIGHT,
94 RESIZABLE_ALL = RESIZABLE_TOP | RESIZABLE_BOTTOM | RESIZABLE_LEFT | 81 RESIZABLE_ALL = RESIZABLE_TOP | RESIZABLE_BOTTOM | RESIZABLE_LEFT |
95 RESIZABLE_RIGHT | RESIZABLE_TOP_LEFT | RESIZABLE_TOP_RIGHT | 82 RESIZABLE_RIGHT | RESIZABLE_TOP_LEFT | RESIZABLE_TOP_RIGHT |
96 RESIZABLE_BOTTOM_LEFT | RESIZABLE_BOTTOM_RIGHT 83 RESIZABLE_BOTTOM_LEFT | RESIZABLE_BOTTOM_RIGHT
97 }; 84 };
98 85
99 // Describes how 4 corners of a panel should be painted. 86 // Describes how 4 corners of a panel should be painted.
100 enum CornerStyle { 87 enum CornerStyle {
101 NOT_ROUNDED = 0, 88 NOT_ROUNDED = 0,
102 TOP_ROUNDED = 0x1, 89 TOP_ROUNDED = 0x1,
103 BOTTOM_ROUNDED = 0x2, 90 BOTTOM_ROUNDED = 0x2,
104 ALL_ROUNDED = TOP_ROUNDED | BOTTOM_ROUNDED 91 ALL_ROUNDED = TOP_ROUNDED | BOTTOM_ROUNDED
105 }; 92 };
106 93
107 } // namespace panel 94 } // namespace panel
108 95
109 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ 96 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698