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

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

Issue 10483010: Change the visual appearance of panel on GTK per new UI design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 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/chrome_browser.gypi » ('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 #pragma once 7 #pragma once
8 8
9 namespace panel { 9 namespace panel {
10 10
11 // Absolute minimum width and height for panels, including non-client area. 11 // Absolute minimum width and height for panels, including non-client area.
12 // Should only be big enough to accomodate a close button on the reasonably 12 // Should only be big enough to accomodate a close button on the reasonably
13 // recognisable titlebar. 13 // recognisable titlebar.
14 // These numbers are semi-arbitrary. 14 // These numbers are semi-arbitrary.
15 // Motivation for 'width' is to make main buttons on the titlebar functional. 15 // Motivation for 'width' is to make main buttons on the titlebar functional.
16 // Motivation for height is to allow autosized tightly-wrapped panel with a 16 // Motivation for height is to allow autosized tightly-wrapped panel with a
17 // single line of text - so the height is set to be likely less then a titlebar, 17 // single line of text - so the height is set to be likely less then a titlebar,
18 // to make sure even small content is tightly wrapped. 18 // to make sure even small content is tightly wrapped.
19 const int kPanelMinWidth = 80; 19 const int kPanelMinWidth = 80;
20 const int kPanelMinHeight = 20; 20 const int kPanelMinHeight = 20;
21 21
22 // The panel can be minimized to 4-pixel lines. 22 // The panel can be minimized to 4-pixel lines.
23 static const int kMinimizedPanelHeight = 4; 23 static const int kMinimizedPanelHeight = 4;
24 24
25 // The height in pixels of the titlebar. 25 // The height in pixels of the titlebar.
26 static const int kTitlebarHeight = 32; 26 static const int kTitlebarHeight = 32;
27 27
28 // Different types of buttons that can be shown on panel's titlebar.
29 enum TitlebarButtonType {
30 CLOSE_BUTTON,
31 MINIMIZE_BUTTON,
32 RESTORE_BUTTON
33 };
34
28 // Different platforms use different modifier keys to change the behavior 35 // Different platforms use different modifier keys to change the behavior
29 // of a mouse click. This enum captures the meaning of the modifier rather 36 // of a mouse click. This enum captures the meaning of the modifier rather
30 // than the actual modifier key to generalize across platforms. 37 // than the actual modifier key to generalize across platforms.
31 enum ClickModifier { 38 enum ClickModifier {
32 NO_MODIFIER, 39 NO_MODIFIER,
33 APPLY_TO_ALL, // Apply the click behavior to all panels in the strip. 40 APPLY_TO_ALL, // Apply the click behavior to all panels in the strip.
34 }; 41 };
35 42
36 // Edge at which a panel is being resized using the mouse. 43 // Edge at which a panel is being resized using the mouse.
37 enum ResizingSides { 44 enum ResizingSides {
(...skipping 11 matching lines...) Expand all
49 // Ways a panel can be resized. 56 // Ways a panel can be resized.
50 enum Resizability { 57 enum Resizability {
51 NOT_RESIZABLE, 58 NOT_RESIZABLE,
52 RESIZABLE_ALL_SIDES, 59 RESIZABLE_ALL_SIDES,
53 RESIZABLE_ALL_SIDES_EXCEPT_BOTTOM 60 RESIZABLE_ALL_SIDES_EXCEPT_BOTTOM
54 }; 61 };
55 62
56 } // namespace panel 63 } // namespace panel
57 64
58 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_ 65 #endif // CHROME_BROWSER_UI_PANELS_PANEL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698